2018年6月6日 星期三

讓Angular 支援 IE11

在src資料夾中找尋polyfills.ts

開啟後按ctrl+f搜尋IE

會出現以下三段資訊 再將import 註解拿掉

最後再運行 npm install --save classlist.js 即可

/** IE9, IE10 and IE11 requires all of the following polyfills. **/
import 'core-js/es6/symbol';
import 'core-js/es6/object';
import 'core-js/es6/function';
import 'core-js/es6/parse-int';
import 'core-js/es6/parse-float';
import 'core-js/es6/number';
import 'core-js/es6/math';
import 'core-js/es6/string';
import 'core-js/es6/date';
import 'core-js/es6/array';
import 'core-js/es6/regexp';
import 'core-js/es6/map';
import 'core-js/es6/weak-map';
import 'core-js/es6/set';

/** IE10 and IE11 requires the following for NgClass support on SVG elements */
import 'classlist.js'; // Run `npm install --save classlist.js`.

/** IE10 and IE11 requires the following for the Reflect API. */
import 'core-js/es6/reflect';

2018年6月1日 星期五

Word列印出現 錯誤!尚未定義書籤 解決方式

有時候Word在列印時出現錯誤!尚未定義書籤
原因是參照的位置可能是別的檔案的關係

不過為了應急能順利列印可以使用以下步驟 :

1.按Ctrl+Z 先將錯誤回復成正常狀態
2.選取整個範圍按 Ctrl+Shift+F9 將其轉成文字
3.按完直接按 Ctrl+C複製
4.再接著按 Ctrl+V貼上

此時就變成純文字的狀態

再預覽列印就會發現正常了