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.

相关内容

热门资讯

透视安装!hhpoker透视脚... 您好,wepoker辅助透视软件这款游戏可以开挂的,确实是有挂的,需要了解加去威信【13670430...
透视私人房!wpk安卓下载辅助... 透视私人房!wpk安卓下载辅助(透视)开挂辅助方法(真是是真的挂)-哔哩哔哩该软件可以轻松地帮助玩家...
透视安卓版!wepoker好友... 透视安卓版!wepoker好友局透视(透视)开挂辅助技巧(果然是有挂)-哔哩哔哩1、让任何用户在无需...
透视线上!wpk模拟器,wpk... 透视线上!wpk模拟器,wpk透视是真的假的,窍要教程(都是是真的挂)-哔哩哔哩1、打开软件启动之后...
透视安卓版!hhpoker有辅... 透视安卓版!hhpoker有辅助的吗,wepoker有辅助工具吗,积累教程(切实是有挂)-哔哩哔哩1...
透视总结!wpk真的有透视嘛(... 透视总结!wpk真的有透视嘛(透视)开挂辅助app(竟然真的有挂)-哔哩哔哩1、这是跨平台的wpk真...
透视ai代打!aapoker ... 透视ai代打!aapoker ai插件,pokernow辅助工具,指南书教程(都是有挂)-哔哩哔哩1...
透视辅助器!we poker游... 透视辅助器!we poker游戏下(透视)开挂辅助app(总是真的是有挂)-哔哩哔哩1、进入游戏-大...
透视免费!wepoker辅助器... 透视免费!wepoker辅助器软件下载,we poker辅助器v3.3,绝活教程(原来是有挂)-哔哩...
透视苹果版!hhpoker怎么... 透视苹果版!hhpoker怎么开透视(透视)开挂辅助攻略(果然是真的挂)-哔哩哔哩1、打开软件启动之...