亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

Vuejs 使用官網上面的例子

Vuejs 使用官網上面的例子

開滿天機 2018-10-19 14:38:02
1.使用vuejs 官網上面的例子,在控制臺中發現了錯誤了,VM2369 vue.js:2658 [Vue warn]: Unknown custom element: <todo-item> - did you register the component correctly? For recursive components, make sure to provide the "name" option. (found in root instance)2.源碼:<div id="app-7">   <ol>     <!-- Now we provide each todo-item with the todo object    -->     <!-- it's representing, so that its content can be dynamic -->     <todo-item v-for="item in groceryList" v-bind:todo="item"></todo-item>   </ol></div>Vue.component('todo-item', {  props: ['todo'],  template: '<li>{{ todo.text }}</li>'})var app7 = new Vue({  el: '#app-7',   data: {    groceryList: [       { text: 'Vegetables' },       { text: 'Cheese' },       { text: 'Whatever else humans are supposed to eat' }     ]   } })
查看完整描述

1 回答

  • 1 回答
  • 0 關注
  • 833 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號