【发布时间】:2017-03-09 22:34:45
【问题描述】:
当我在 IE11 或更低版本中尝试我的 vue.js 应用程序时,我得到错误 SCRIPT1003 例外:在指向 routeContent 的控制台中。我的 Snytax 看起来像这样:
var store = new Vuex.Store({
state: {
routeContent: null
},
mutations: {
routeContent(state, payload) {
state.routeContent = payload
document.title = payload.title
}
}
})
【问题讨论】:
-
你在使用转译器(例如 Babel)吗?
标签: javascript internet-explorer internet-explorer-11 vue.js vuex