Can someone give some specific definitions (if there are any) for the following:
是否有人能给出以下的具体定义(如果有的话):
- Shims
- 垫片
- Fallbacks
- 回退
- Polyfills
- Polyfills
These are important topics at the moment and these particular terms are being thrown around in the blogosphere rather loosely, from what I can see. I would really like a definitive explanation of the terms and how they relate to each other.
这些都是当下的重要话题,从我所能看到的情况来看,这些特定的术语在博客圈中被随意地抛出。我很想对这些术语以及它们之间的关系做一个明确的解释。
1 个解决方案
#1
3
polyfill: A shim that mimics a future API, providing fallback functionality to older browsers.
polyfill:模仿未来API的shim,为旧浏览器提供回退功能。
https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-browser-Polyfills
https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-browser-Polyfills
http://remysharp.com/2010/10/08/what-is-a-polyfill/
http://remysharp.com/2010/10/08/what-is-a-polyfill/
http://blog.reybango.com/2010/10/11/how-polyfills-fill-in-the-gaps-to-make-html5-and-css3-usable-today/
#1
3
polyfill: A shim that mimics a future API, providing fallback functionality to older browsers.
polyfill:模仿未来API的shim,为旧浏览器提供回退功能。
https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-browser-Polyfills
https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-browser-Polyfills
http://remysharp.com/2010/10/08/what-is-a-polyfill/
http://remysharp.com/2010/10/08/what-is-a-polyfill/
http://blog.reybango.com/2010/10/11/how-polyfills-fill-in-the-gaps-to-make-html5-and-css3-usable-today/