我们的志愿者还没有将这篇文章翻译为 中文 (简体)。加入我们帮助完成翻译!
A polyfill is a piece of code (usually JavaScript on the Web) used to provide modern functionality on older browsers that do not natively support it.
For example a polyfill could be used to mimic the functionality of an HTML Canvas element on Microsoft Internet Explorer 7 using a Silverlight plugin, or mimic support for CSS rem units, or text-shadow
, or whatever you want.
Learn more
General knowledge
- What is a polyfill? (article by Remy Sharp, originator of the term)