1. 程式人生 > >Vue解決安卓4.4不兼容的問題

Vue解決安卓4.4不兼容的問題

export 安裝 try import base ebp main 6.2 npm

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解決安卓4.4不兼容的問題