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能不能透视,wepoker提高好牌率(透视)真是是有挂(哔哩哔哩)1、wep...
透视积累!wepoker软件靠... 透视积累!wepoker软件靠谱么,wepoker数据分析工具(透视)切实有透视工具(哔哩哔哩)1、...
透视机巧!wepoker脚本,... 透视机巧!wepoker脚本,hhpoker可以控制吗(透视)都是是真的挂(哔哩哔哩)1、每一步都需...
透视办法!aapoker怎么设... 透视办法!aapoker怎么设置提高好牌几率,aapoker万能辅助器(透视)其实真的有脚本软件(哔...
透视操作!wepoker有没有... 透视操作!wepoker有没有透视方法,aapoker如何设置胜率(透视)确实有挂(哔哩哔哩)1、操...
透视绝活!约局吧辅助器,德州透... 透视绝活!约局吧辅助器,德州透视脚本(透视)真是存在有脚本工具(哔哩哔哩)1.约局吧辅助器 选牌创建...
透视绝活儿!wepoker怎么... 透视绝活儿!wepoker怎么挂底牌,wpk刷入池率脚本(透视)确实存在有挂(哔哩哔哩)1.wepo...
透视手筋!德州局透视,wepo... 透视手筋!德州局透视,wepoker安装教程(透视)本来是有透视教程(哔哩哔哩)暗藏猫腻,小编详细说...
透视窍门!hhpoker有后台... 透视窍门!hhpoker有后台操控吗,werplan脚本(透视)确实真的是有挂(哔哩哔哩)hhpok...