对象不支持属性或方法“分配” Vue.js

时间:2019-08-02 21:44:31

标签: vue.js internet-explorer

当我在IE 11上加载空白页时,该网站正在播放空白页

我添加了“ @ babel / polyfill”:但是没有运气

package.json

 "dependencies": {
    "@babel/polyfill": "^7.4.4",
    "axios": "^0.18.0",
    "babel-polyfill": "^6.26.0",
    "babel-preset-env": "^1.6.0",
    "babel-preset-es2015": "^6.24.1",
    "babel-preset-stage-0": "^6.24.1",
    "bootstrap": "^4.2.1",
    "html2pdf.js": "^0.9.1",
    "jquery": "^3.3.1",

............

bable.config.js

module.exports = {
  presets: [
    '@vue/app',
  ],
};

SCRIPT438:对象不支持属性或方法“分配”

1 个答案:

答案 0 :(得分:0)

请尝试在index.html页的开头添加以下脚本。

<script src='https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.23.0/polyfill.min.js'></script>