最好是用ngModelChange
1.(change)
//.html
<input type="text" [(ngModel)]="msg" (change)="handleChange($event)">
//.ts
handleChange(e){
console.log(e.target)
}
2.(ngModelChange)
- 只要ngModelChage中的内容改变时就会触发
- (ngModelChange)要放在[(ngModel)]后面 ```javascript //.html
//.ts handleChange(){ console.log(1) } ```