let data=[{ id:1, name:"张三" }] //数据源 if(this.data.hasOwnProperty("name")){ console.log("数据中包含name属性") }