import * as types from './mutation-types'const mutations={ [types.num]//mutation-types取/mutation-types里的值,為什么需要用[],直接types.num不可以嗎? }
關(guān)于es6語(yǔ)法問(wèn)題。
尚方寶劍之說(shuō)
2019-02-26 15:26:00