01前端/shim 和 polyfill 更新时间:2021-08-22 05:45 创建时间:2021-08-22 05:44 shim(垫片):让旧环境支持新 API 的一些库。 polyfill(腻子):针对浏览器 API 的 shim。 另一种说法:shim 用来让旧环境支持新 API,polyfill 让未来将支持的 API 现在就可以使用。 What is the difference between a shim and a polyfill? 上一篇 01前端/npm - unsafe-perm 下一篇 01前端/Chrome DevTools - 选择 pointer-events 为 none 的元素