加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

Angular中polyfills.ts文件的用途是什么

发布时间:2020-12-17 07:30:37 所属栏目:安全 来源:网络整理
导读:使用Angular Cli创建Angular应用程序时会自动生成polyfills.ts文件. 任何人都可以解释一下Angular应用程序中polyfills.ts文件的用途. angular中的polyfills是几行代码,使您的应用程序兼容不同的浏览器.我们编写的代码主要是在ES6(新功能:概述和比较)中,与IE
使用Angular Cli创建Angular应用程序时会自动生成polyfills.ts文件.
任何人都可以解释一下Angular应用程序中polyfills.ts文件的用途.
angular中的polyfills是几行代码,使您的应用程序兼容不同的浏览器.我们编写的代码主要是在ES6(新功能:概述和比较)中,与IE或Firefox不兼容,需要一些环境设置才能在这些浏览器中查看或使用.

Polyfills.ts由angular提供,可帮助您无需专门设置所有内容.

来自Docs

Angular is built on the latest standards of the web platform.
Targeting such a wide range of browsers is challenging because they do
not support all features of modern browsers.

阅读更多here

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读