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.

相关内容

热门资讯

九分钟攻略!福麻圈经典跑得快外... 九分钟攻略!福麻圈经典跑得快外 挂,德扑之星ai代打(详细透视辅助软件教程);大神普及一款德州ai内...
九分钟教学!呼兰麻将有挂么,w... 九分钟教学!呼兰麻将有挂么,wopoker真的有挂(详细透视辅助神器教程);wpk透视辅助官方版是专...
6分钟规律!闲来跑胡子辅助工具... 6分钟规律!闲来跑胡子辅助工具,fish poker外 挂(详细透视辅助助手教程);闲来跑胡子辅助工...
一分钟透明!丫丫衡阳字牌有挂吗... 1、一分钟透明!丫丫衡阳字牌有挂吗,云扑克辅助器真假(详细透视辅助挂教程)。2、丫丫衡阳字牌有挂吗透...
3分钟介绍!同城上饶棋牌有挂吗... 3分钟介绍!同城上饶棋牌有挂吗,wpk脚本(详细透视辅助软件教程)1、很好的工具软件,可以解锁游戏的...
6分钟方法!家家盘锦麻将有挂吗... 6分钟方法!家家盘锦麻将有挂吗,wpk微扑克真的有辅助插件(详细透视辅助黑科技教程);原来确实真的有...
7分钟规律!开心联盟牛牛有没有... 7分钟规律!开心联盟牛牛有没有外 挂,德州ai辅助代理(详细透视辅助工具教程)准备好在开心联盟牛牛有...
6分钟攻略!越乡游斗牌辅助,微... 6分钟攻略!越乡游斗牌辅助,微扑克被系统制裁(详细透视辅助脚本教程)是一款可以让一直输的玩家,快速成...
7分钟技巧!心悦填大坑辅助器,... 7分钟技巧!心悦填大坑辅助器,aapoker发牌机制(详细透视辅助神器教程);科技安装教程;1367...
六分钟介绍!沐沐福建麻将app... 六分钟介绍!沐沐福建麻将app有猫腻吗,德州之星软件(详细透视辅助工具教程)是由北京得沐沐福建麻将a...