Vue.component('all-canuse',{ props:['message'], template:'<div>{{message}}</div>' }) 像这样 转载于:https://www.cnblogs.com/1rookie/p/10577576.html