vue props怎么传多个数据?
“`var mycomponent = Vue.extend({props: [‘title’,’content’],template: ‘{{title}}{{content}}‘,})Vue.component('my-component',mycomponent);var vm = new Vue({el: "
·
“`
})
var mycomponent = Vue.extend({
props: [‘title’,’content’],
template: ‘
{{title}}
{{content}}
‘,})
Vue.component('my-component',mycomponent);
var vm = new Vue({
el: "#app",
});
“`更多推荐
已为社区贡献1条内容
所有评论(0)