📜  大写输入文本 html 代码示例

📅  最后修改于: 2022-03-11 14:53:04.257000             🧑  作者: Mango

代码示例2
//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();
}