zoukankan
html css js c++ java
Shim 与 Polyfill
Shim: 用来向后兼容。比如
requestIdleCallback
,为了在旧的环境中不报错,可以加
shim
。
使用环境中现有的 api 来实现,不会引入额外的依赖或其他技术。
Polyfill: 用来增强,添加新功能。比如 IE7 不支持 localStorage,能添加 polyfill 来支持。
不限制实现,只要是能引入该新功能。通过 js 可 flash。记得很早以前 chrome 还为 ie 开发过插件来支持一些高级的浏览器特性。
参考
What is the difference between a shim and a polyfill?
shim vs polyfill?
查看全文
相关阅读:
课程设置
专家答疑:ASP.NET MVC与WebForm的区别
PHP环境的搭建之利器 – APMServ
office access vs mysql
IBM Tivoli Identity Manager 5.1 Basic Implementation
Windows安全认证是如何进行的?
landesk桌面管理
转:HBase在淘宝的应用和优化小结
Workstation ITbased Security Best Practice Configurations
Scale Your Applications with Component Load Balancing (cont'd)
原文地址:https://www.cnblogs.com/Wayou/p/shim_and_polyfill.html
最新文章
重置windows 2003域控制器管理员口令
完善Linux/UNIX审计 将每个shell命令记入日志
转:车库咖啡网络现状及改造建议
USB安全
Portal产品对比分析报告
How to block USB Thumb Drives and USB Hard Drives, but allow specific USB Drives in the Application and Device Control Policy in Symantec Endpoint Pro
如何禁止IIS缓存静态文件(png、js、html等)
「Borland传奇」书中一段,描述 .NET 在 10 年前诞生的故事,及其创造者 Anders Hejlsberg 的一些趣味故事。
SQL内连接,外连接区别
全面接触微软事务处理服务MTS
热门文章
拨云见日:企业网络准入策略小议
分布式应用程序
系统批量安装
20款国内外免费使用 主流杀毒软件
一种DCOM与CORBA集成的应用服务器实用模型研究
Secure your USB drives with BitLocker To Go for Windows 7
微软基于Web计算的框架结构分析
运维工程师的职责和前景
NoSQL崛起的六大原因
TAM几个介绍
Copyright © 2011-2022 走看看