+
95
-

回答

在main.js中定义 Vue.prototype.$testobj = {name:"123"}

在组件中可以直接读取this.$testobj 


网友回复

我知道答案,我要回答