clickup #6vvpqz และทำ function กลาง ให้กรอกแต่จำนวนเต็ม
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user