that.$scope.$watch(()=> {return this.postData.close}, (newVal) => {
if(newVal){
td = Object.assign(td,this.postData)
that.DialogService.hide();
}
})
事件监听,$watch(a, b),a可用箭头函数return一个变量,如果此变量改变,执行b,b中可带两个参数(newVal, oldVal)
