📜  在输入字段中将文本转换为大写 - Html 代码示例

📅  最后修改于: 2022-03-11 14:53:16.197000             🧑  作者: 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();
}