【发布时间】:2018-10-08 10:10:29
【问题描述】:
使用标准的vue create 模板,在IE11 上是否可以工作:
async toggleSettings({ dispatch }) {
if (await dispatch('confirm') { // etc }
}
?
【问题讨论】:
-
我建议你在 IE 11 中实际尝试一下,因为人们在这个问题上的知识可能已经过时了。这样你也可以确定它是否有效是事实。
-
你会如何在 Mac 上做到这一点@Ferrybig
-
是的,你可以在 Vue 中使用 async await,它会在 IE11 中转译和工作。
标签: javascript vue.js async-await vuex vue-cli