<!-- 实现 双向绑定的三中方法 -->
<input type="text" [(ngModel)]="inputValue" >
<button (click)="searchValue($event)">btn</button>
<input type="text" #phone>
<button (click)="searchValue2(phone.value)">btn</button>
<input type="text" ref-phone2>
<button (click)="searchValue2(phone2.value)">btn</button>
searchValue(n:any) {
console.log(this.inputValue)
console.log(n.target)
}
searchValue2(n:any) {
console.log(n)
}