1.npm安装npminstallbabel-polyfillnpminstalles6-promisepackage.json中会出现"babel-polyfill":"^6.26.0","es6-promise"
1.npm安装
npm install babel-polyfill
npm install es6-promise
package.json中会出现
"babel-polyfill": "^6.26.0",
"es6-promise": "^4.1.1",
2.main.js引入
import 'babel-polyfill'
import Vue from 'vue'
import Es6Promise from 'es6-promise'
require('es6-promise').polyfill()
Es6Promise.polyfill()
3.webpack.base.conf.js
module.exports = {
entry: {
"babel-polyfill":"babel-polyfill",
app: './src/main.js'
},
总结
以上所述是小编给大家介绍的Vue中android4.4不兼容问题的解决方法 ,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对脚本之家网站的支持!
vue android4.4 vue android