<input
onkeypress="return event.keyCode>=48&&event.keyCode<=57||event.keyCode==46"
onpaste="return !clipboardData.getData('text').match(/\D/)"
ondragenter="return false"
style="ime-mode:Disabled"
>
onkeypress="return event.keyCode>=48&&event.keyCode<=57||event.keyCode==46"
onpaste="return !clipboardData.getData('text').match(/\D/)"
ondragenter="return false"
style="ime-mode:Disabled"
>
if IsNumeric(表达式) then
......
else
......
end if
{
string a=TextBox.substring(i,1);
if (TextBox.text>="0" && TextBox.text<="9")
{}
else
{
window.alert("...");
}
}