📅  最后修改于: 2022-03-11 14:53:04.257000             🧑  作者: Mango
//for angular
(input)="onInput($event)"
onInput(event) {
event.target.value = event.target.value.toLocaleUpperCase();
}
//for HTML
(onInput)="onInput($event)"
onInput(event) {
event.target.value = event.target.value.toLocaleUpperCase();
}