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?
查看全文
相关阅读:
mac下用xattr命令来删除文件的扩展属性
使用vue.js实现checkbox的全选和多个的删除功能
正则表达式匹配任意字符(包括换行符)的写法
jQuery Mobile动态刷新页面样式
jquery mobile各类标签的refresh
jQuery .attr()和.removeAttr()方法操作元素属性示例
jquery mobile各类组件刷新方法
Apache PDFbox开发指南之PDF文档读取
日期字符串解析--SimpleDateFormat严格限制日期转换setLenient(false)
hdu5032 Always Cook Mushroom
原文地址:https://www.cnblogs.com/Wayou/p/shim_and_polyfill.html
最新文章
SpringBoot集成Spring Security(3)——异常处理
SpringBoot集成Spring Security(2)——自动登录
SpringBoot集成Spring Security(1)——入门程序
springBoot+springSecurity 数据库动态管理用户、角色、权限(二)
springboot+mybatis+SpringSecurity 实现用户角色数据库管理(一)
Loading class `com.mysql.jdbc.Driver'. This is deprecated警告处理,jdbc更新处
Spring Security 报There is no PasswordEncoder mapped for the id "null"
在SpringBoot2.0及Spring 5.0 WebMvcConfigurerAdapter已被废弃,目前找到解决方案就有两种
Spring AOP 五大通知类型
使用IndexReader.repen提高搜索速度
热门文章
关于lucene的IndexSearcher单实例,对于索引的实时搜索
C#代码利用MongoDB中Group聚合函数查询
盘古分词
通过盘古分词自定义规则功能实现软件版本号的提取
雅虎NCP:网络黄页的终结者
马云财富人生:疯狂贩卖梦想
加入企业黄页有什么好处?
中华大黄页
中国114黄页核心价值观
git cherry-pick. 如何把已经提交的commit, 从一个分支放到另一个分支
Copyright © 2011-2022 走看看