You can only enter the numerical type function in HTML

xiaoxiao2021-03-06  43

Function Checknumber (OB, Name) {

Var str = ob. value;

Var len = str.length;

VAR J = 0;

For (i = 0; i

IF (CHECKETW (Str.Charat (I), '0', '9'))) Continue;

Else {

Alert (Name "is an integer type, your input is illegal!");

ob.focus ();

Return False;

}

}

Return True;

}

转载请注明原文地址:https://www.9cbs.com/read-71568.html

New Post(0)