Angular2 Chinese text box how can only enter text letters and underscores ah, preferably a command

Why can only text letters and underscores be entered in the angular2 text box? it is best to use the instruction

.
Mar.19,2021

cannot limit what characters the user enters, but you can listen to the keyup event of input and then process the entered string in this event.

<input type="text" [(ngModel)]="text" (keyup)="handle($event)">

handle(event){
// 

}
Menu