📅  最后修改于: 2022-03-11 14:48:16.440000             🧑  作者: Mango
phoneKeyDown(e){
const keyCode = e.keyCode;
if (( (e.shiftKey || (e.keyCode < 48 || e.keyCode > 57)) && (e.keyCode < 96 || e.keyCode > 105)) && e.keyCode !=8) {
e.preventDefault();
}
}
// IN HTML