Internet explorer 巴贝尔没有';t覆盖附加方法?
Babel是新手,它的大部分工作都很好,但我不明白为什么Babel没有涵盖append方法。这是我的宝贝Internet explorer 巴贝尔没有';t覆盖附加方法?,internet-explorer,append,babeljs,appendchild,polyfills,Internet Explorer,Append,Babeljs,Appendchild,Polyfills,Babel是新手,它的大部分工作都很好,但我不明白为什么Babel没有涵盖append方法。这是我的宝贝 { "presets": [ [ "@babel/preset-env", { "targets": { "browsers": [ "> 1%" ] }, "useBuiltIns": false, "debug": tr
{
"presets": [
[
"@babel/preset-env",
{
"targets": {
"browsers": [
"> 1%"
]
},
"useBuiltIns": false,
"debug": true,
"modules": false
}
]
],
"ignore": [
"Gruntfile.js",
"dist/**",
"lib/*.min.js",
"productionJS/*.js"
],
"plugins": [
"@babel/plugin-transform-classes"
]
}
我试着使用useBuildIns=“entry”和“usage”,但没有什么不同。我是否需要添加更多插件或设置不同的预设以覆盖附加
目前,我的解决方法是使用下面链接中的polyfill
任何提示都将非常受欢迎
babel
将现代JavaScript语法转换为适用于旧浏览器的向后兼容代码append
是一种DOM方法,请根据MDN使用polyfill