this.carList.push(obj) //直接push不生效
this.carList=this.carList.concat([obj]) //包裹成数组再concat才能检测到数据变化
this.notifyPropertyChange('carList', this.carList)
nativescript中notifyPropertyChange方法不生效的问题
最新推荐文章于 2024-11-07 15:09:42 发布
this.carList.push(obj) //直接push不生效
this.carList=this.carList.concat([obj]) //包裹成数组再concat才能检测到数据变化
this.notifyPropertyChange('carList', this.carList)