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.

相关内容

热门资讯

教程辅助!微乐小程序自建房辅助... 教程辅助!微乐小程序自建房辅助工具插件,微乐小程序免费黑科技(开挂自建房)app1、实时微乐小程序自...
必知教程!微信微乐自建房辅助工... 必知教程!微信微乐自建房辅助工具,微乐小程序免费黑科技(开挂自建房)器一、微信微乐自建房辅助工具游戏...
一分钟揭秘!微乐自建房辅助工具... 一分钟揭秘!微乐自建房辅助工具,微乐小程序免费黑科技(开挂自建房)方法该软件可以轻松地帮助玩家将微乐...
玩家必备教程!微乐自建房辅助工... 玩家必备教程!微乐自建房辅助工具挂,微乐自建房脚本免费入口(开挂自建房)插件1、下载好微乐自建房辅助...
避坑细节!微乐小程序自建房辅助... 避坑细节!微乐小程序自建房辅助工具插件,微乐小程序免费黑科技(开挂自建房)插件1、操作简单,无需微乐...
玩家必看科普!微乐自建房辅助工... 玩家必看科普!微乐自建房辅助工具免费app,微乐自建房脚本免费入口(开挂自建房)技巧1、超多福利:超...
交流学习经验!微乐微信自建房辅... 交流学习经验!微乐微信自建房辅助工具插件,微乐家乡麻将自建房辅助app(开挂自建房)工具1、微乐微信...
六分钟了解!微乐微信自建房辅助... 六分钟了解!微乐微信自建房辅助工具插件,微乐自建房脚本免费入口(开挂自建房)教程1、微乐微信自建房辅...
新手必备!微信雀神麻将挂件开挂... 新手必备!微信雀神麻将挂件开挂辅助,微乐家乡麻将自建房辅助app(开挂自建房)教程1、起透看视 微乐...
一分钟教你!微乐微信自建房辅助... 一分钟教你!微乐微信自建房辅助工具插件,微乐自建房脚本免费入口(开挂自建房)脚本微乐微信自建房辅助工...