代码如下 <div id="box6"> <my-component2 :showInfor="hello"></my-component2> <my-component2 :showInfor="hi"></my-component2> </div> <script type="text/javascript"> Vue.component('my-component2',{ props: ['showInfor'], template: "<div><h4>{{showInfor}}</h4></div>", computed: { showInforRes: function(){ return this.showInfor+" world!" } } }) var com2 = new Vue({ el: '#box6' })</script>报错如下
添加回答
举报
0/150
提交
取消
