vue中未定义的的对象属性在页面中绑定不到值,通过$set(data,key,value)实现 1、data添加tableData空对象 2、使用如下: this.$set(this.tableData, 'name', '小妮子');