gpt4 book ai didi

safari - Angular 6 应用程序在 safari 浏览器中不起作用

转载 作者:行者123 更新时间:2023-12-01 13:15:46 25 4
gpt4 key购买 nike

Angular 应用程序在 IE 和 chrome 中运行良好,但在 safari 中它甚至没有显示任何错误也无法正常工作并尝试使用 polyfill

在这里 polyfill.ts

/** IE9, IE10 and IE11 requires all of the following polyfills. **/
import 'core-js/es6/symbol';
import 'core-js/es6/object';
import 'core-js/es6/function';
import 'core-js/es6/parse-int';
import 'core-js/es6/parse-float';
import 'core-js/es6/number';
import 'core-js/es6/math';
import 'core-js/es6/string';
import 'core-js/es6/date';
import 'core-js/es6/array';
import 'core-js/es6/regexp';
import 'core-js/es6/map';
import 'core-js/es6/weak-map';
import 'core-js/es6/set';
import 'core-js/client/shim';
import 'intl';
import 'intl/locale-data/jsonp/en';

/** IE10 and IE11 requires the following for NgClass support on SVG elements */
import 'classlist.js'; // Run `npm install --save classlist.js`.

/** IE10 and IE11 requires the following for the Reflect API. */
import 'core-js/es6/reflect';


/** Evergreen browsers require these. **/
// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.
import 'core-js/es7/reflect';

import 'web-animations-js'; // Run `npm install --save web-animations-js`.


import 'zone.js/dist/zone'; // Included with Angular CLI.

并且在 package.json 中都是 6.x 版本

最佳答案

Angular 6 支持 Safari 版本 >= 10。截至目前(2019 年 8 月 1 日),在 Windows 系统上最新版本的 safari 是 5,在 Mac 上是 12。如果您在 windows safari 上进行验证,它将不起作用。您需要在 Mac 机器上检查它。

您可以查看 safari 发布历史 here

关于safari - Angular 6 应用程序在 safari 浏览器中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55243111/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com