ionic 文本域文字输入监听事件

ionic 文本域(文本框)实时监听文字输入的方法

<textarea [(ngModel)]="readyText" (ngModelChange)="onChangeText(readyText)" placeholder="请描述您的服务内容" rows="8">{{repairs_item}}</textarea>

//监听事件

onChangeText(value:string){

  console.log(value)

}

猜你喜欢

转载自www.cnblogs.com/resultwp/p/9554520.html