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.

相关内容

热门资讯

透视软件!菠萝辅助器免费版的功... 透视软件!菠萝辅助器免费版的功能介绍,wepoker游戏安装教程,资料教程(一贯是有挂)-哔哩哔哩1...
透视模拟器!大菠萝免费辅助器,... 透视模拟器!大菠萝免费辅助器,来来拼十辅助免费下载,总是有挂(详情黑科技教程)-哔哩哔哩1、许多玩家...
透视ai代打!aapoker怎... 透视ai代打!aapoker怎么设置抽水(透视)开挂辅助器(竟然是真的挂)-哔哩哔哩1、aapoke...
透视模拟器!wpk辅助,xpo... 透视模拟器!wpk辅助,xpoker辅助,绝活教程(本来是真的挂)-哔哩哔哩;1、起透看视 xpok...
透视新版!wejoker辅助器... 透视新版!wejoker辅助器要钱玩吗,陕麻圈修改工具,原来存在有挂(总结透牌教程)-哔哩哔哩1、完...
透视规律!佛手在线大菠萝智能辅... 透视规律!佛手在线大菠萝智能辅助器(透视)开挂辅助神器(其实是有挂)-哔哩哔哩1、佛手在线大菠萝智能...
透视新版!aapoker透视插... 透视新版!aapoker透视插件,约战青山晃晃透视辅助,切实存在有挂(必备细节方法)-哔哩哔哩约战青...
透视智能ai!wpk插件,po... 透视智能ai!wpk插件,pokerworld软件,模板教程(原来存在有挂)-哔哩哔哩1、超多福利:...
透视智能ai!智星德州有脚本吗... 透视智能ai!智星德州有脚本吗,hhpoker真的有透视吗,方式教程(其实是真的挂)-哔哩哔哩所有人...
透视打法!xpoker辅助控制... 透视打法!xpoker辅助控制(透视)开挂辅助攻略(本来是有挂)-哔哩哔哩1、下载好xpoker辅助...