clickup #6vvpqz และทำ function กลาง ให้กรอกแต่จำนวนเต็ม

This commit is contained in:
Pairat Sangprasert
2021-04-20 22:04:40 +07:00
parent a89ba725a2
commit d065ad6238
4 changed files with 45 additions and 25 deletions

View File

@@ -678,3 +678,13 @@ function coreCurrencyToDecimal(currency) {
}
return number;
}
function coreIsNumber(event) {
var charCode = (event.which) ? event.which : event.keyCode;
console.log("charCode",charCode);
if (charCode > 31 && (charCode < 48 || charCode > 57)){
event.preventDefault();
}else{
return true;
}
}