当前位置:网站首页>Polyfill是什么?
Polyfill是什么?
2022-04-22 03:10:00 【sdKdqweas】
前言
在学习Babel中,通过 Polyfill 方式在目标环境中添加缺失的特性。
这里的polyfill方式添加我不是太明白
什么是Polyfill
先从这个名词意思开始,他的意思是特殊的粘合剂保证附着力和填充不会收缩或开裂。
在简化一点就是用于缝补的功能
那么在js环境中,什么情况下需要缝补?
当我们在使用一些高版本的API时,低版本不支持,这时候该怎么办?
所以Polyfill就是存在这两者之间的一个中间件。
它会自动帮我们修正位于高版本和低版本浏览器之间的不使用特性
有时也可以称它为垫片。
垫片的描述也挺形象,却乏了这一块,就无法运行,只要加上这个垫片,双方就能和在一起工作
版权声明
本文为[sdKdqweas]所创,转载请带上原文链接,感谢
https://blog.csdn.net/economics3/article/details/124332503
边栏推荐
- Flink 细粒度资源管理新特性解读
- Verse protocol: a wonderful idea to optimize NFT liquidity
- Serviceworker cache and HTTP cache
- kerberos認證協議
- Apple watch theme picture crawl!
- twenty-five. Module / built-in module / module installation
- 500错误,提交响应后无法转发
- Interpretation of Flink's new features of fine-grained resource management
- Modem dial-up playback, originally written in the millionaire, summarized.
- After four years of outsourcing, it was abandoned
猜你喜欢

China Database ranking in April 2022: the spring breeze blows the face, the spring is warm, and the score rises in April

Performance test and comparison of oceanbase and MariaDB using dbt-3

500错误,提交响应后无法转发

ESP32_GPIO输入、输出和中断

Allegro gerber文件路径设定

Driverless virtual simulation (13) -- traffic sign recognition in image processing 1

Verse protocol: a wonderful idea to optimize NFT liquidity

On the attention economy of NFT

Writing method of JSS in material UI (notes)

Another perspective on the meta universe: the meta universe culture is quietly changing the world
随机推荐
Kerberos authentication protocol
tetracosa-. Deep and shallow copies of classes
C language curriculum design -- examination room ranking system based on linked list
Redis event driven framework (Part 1): when to use select, poll and epoll?
Share price plummeted Robinhood acquired British encryption company for expansion
[experience] TF1 X migrate to TF2 X tutorial
To civilized lifestyle and environmental pollution
Rational view of the advantages and disadvantages of automated testing
[NCTF2019]Fake XML cookbook
Saas.扩展字段 自定义字段
OneFlow 的 Global Tensor 学习笔记和实习总结
微信H5支付(报跨域问题)
Serviceworker cache and HTTP cache
【Laravel系列4.7】连接redis以及缓存应用
Delphi automatically adapts to the screen size
500 error, unable to forward after submitting the response
Flutter04 widget initial experience
Saas. Data isolation and persistence scheme
2022-4-21作业
苹果表主题图片爬取!