“`


var mycomponent = Vue.extend({
props: [‘title’,’content’],
template: ‘

{{title}}

{{content}}

‘,
})
Vue.component('my-component',mycomponent);

var vm = new Vue({
        el: "#app",
    });
“`
Logo

前往低代码交流专区

更多推荐