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?
查看全文
相关阅读:
Plot the figure of K-SVCR
利用sklearn计算文本相似性
djago 定义后台地址
django admim后台不转义提交的html
django 静态css js文件配置
django后台的制作
django 设置不带后缀的访问路径
阿里云ECS服务器 常见问题(1)
python 将word另存为txt
python遍历某一位置所有文件夹中的文件
原文地址:https://www.cnblogs.com/Wayou/p/shim_and_polyfill.html
最新文章
【工具】云手机的网站
【杂记】8.10大二暑期实习接近尾声
【资源】mp3的外链资源
【资源】mp3的外链资源
【收藏】哪些比较好的在线编程网站?
【杂记】2016年7月杂记
【androidstudio】将eclipse的项目导入android studio
【杂记】整理博文
【android异步处理】一个关于android异步处理的文章系列
【android】新手容易遇到的[error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'.]Theme出错的问题
热门文章
Qt: error lnk1158 无法运行rc.exe
发布Qt Widgets桌面应用程序的方法
Thrift框架应用参考
观察者模式
thrift 的原理和使用
CMake学习笔记六-引用cmake文件
CMake学习笔记五-依赖库添加
CMake学习笔记四-CMake常用命令
CMake学习笔记三
工程没有生成lib文件,只生成了dll文件
Copyright © 2011-2022 走看看