Angular应用在Edge浏览器中无法工作
创始人
2024-10-30 16:00:23
0

可以尝试在index.html中引入以下polyfills:





 


如果在Angular CLI中,可以在polyfills.ts文件中引入以下polyfills:

/**
 * Polyfills
 */

 import 'classlist.js';  // Run `npm install --save classlist.js`.
 import 'web-animations-js'; // Run `npm install --save web-animations-js`.
 
 (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
 (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
 (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
 
 /*
  * Web Animations `@angular/platform-browser/animations`
  * Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
  * Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
  **/
 import 'web-animations-js';  // Run `npm install --save web-animations-js`.
 
 /***************************************************************************************************
  * Zone JS is required by default for Angular itself.
  */
 import 'zone.js/dist/zone';  // Included with Angular CLI.

相关内容

热门资讯

专业透视!德州透视是真的吗!总... 专业透视!德州透视是真的吗!总是存在有辅助插件(有挂辅助)-哔哩哔哩1、任何德州透视是真的吗透视是真...
揭幕透视!wepoker轻量版... 揭幕透视!wepoker轻量版有透视吗,哈糖大菠萝有没有挂,指引教程(有挂细节)-哔哩哔哩1、操作简...
总结透视!德州局怎么透视!本来... 总结透视!德州局怎么透视!本来有辅助神器(有挂细节)-哔哩哔哩1、下载好德州局怎么透视脚本下载之后点...
开挂透视!wejoker黑侠辅... 开挂透视!wejoker黑侠辅助器,cloudpoker作必弊,机巧教程(果真有挂)-哔哩哔哩wej...
解密透视!竞技联盟透视插件!原... 解密透视!竞技联盟透视插件!原来是有辅助教程(确实有挂)-哔哩哔哩竞技联盟透视插件破解侠是真的助透视...
解密透视!aapoker辅助软... 解密透视!aapoker辅助软件合法吗,aapoker辅助器是真的吗,机巧教程(有挂实锤)-哔哩哔哩...
推荐透视!哈糖大菠萝能开挂吗,... 推荐透视!哈糖大菠萝能开挂吗,pokerworld辅助器,方针教程(有挂教学)-哔哩哔哩1、每一步都...
解密透视!sohoo poke... 解密透视!sohoo poker辅助器!一直是真的有辅助神器(有挂教学)-哔哩哔哩1、下载好soho...
解谜透视!拱趴大菠萝万能挂!切... 解谜透视!拱趴大菠萝万能挂!切实有辅助工具(有挂规律)-哔哩哔哩在进入拱趴大菠萝万能挂软件靠谱后,参...
教你透视!aapoker怎么选... 教你透视!aapoker怎么选牌,德州局透视脚本免费版下载手机版,方式教程(存在有挂)-哔哩哔哩在进...