為什么報錯了啊
代碼:?
methods:{ ????handleSubmit:function(){ ????????this.list.push(this.inputValue) ????????this.inputValue="" ????}
報錯了:
test4.html:25 Uncaught TypeError: this.list.push is not a function
? ? at Vue.handleSubmit (test4.html:25)
? ? at invoker (vue.js:2032)
? ? at HTMLButtonElement.fn._withTask.fn._withTask (vue.js:1831)
2020-04-15
大概是list:[] 的格式寫錯了吧 都不貼完整的代碼
2018-11-04
請問你怎么解決的?
2018-07-12
知道了,已解決