第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

enter后不會(huì)清空

我的一直報(bào)錯(cuò)Property or method "newItem" is not defined on the instance but referenced during render

正在回答

3 回答

在data里面先定義一個(gè)newItem:''? ?

data:function(){

? ? return{

? ? ? title:'this is a todo list',

? ? ? items:[

? ? ? ? {

? ? ? ? ? label:'coding',

? ? ? ? ? isFinshed:true

? ? ? ? },

? ? ? ? {

? ? ? ? ? label:'walking',

? ? ? ? ? isFinshed:true

? ? ? ? }

? ? ? ],

? ? ? newItem:''

? ? }

?}

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

小花菜6

哈哈 謝謝
2019-01-13 回復(fù) 有任何疑惑可以回復(fù)我~

定義了實(shí)例屬性item后,? ?找到v-model的方法? 每次執(zhí)行完加上this.item = "";就好了?

0 回復(fù) 有任何疑惑可以回復(fù)我~

報(bào)錯(cuò)信息都告訴你了,沒(méi)有定義實(shí)例屬性item。直白點(diǎn)講,就是你new Vue(option)時(shí)的參數(shù)對(duì)象 option.data內(nèi)沒(méi)有綁定實(shí)例屬性item,你綁定的是data!

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
vue.js入門基礎(chǔ)
  • 參與學(xué)習(xí)       209620    人
  • 解答問(wèn)題       715    個(gè)

本門為vuejs入門教程,詳細(xì)的講解加實(shí)戰(zhàn),可以幫你進(jìn)入vuejs的大門

進(jìn)入課程

enter后不會(huì)清空

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)