为什么报错了啊
代码:
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)