Judgment the code of the number

xiaoxiao2021-03-06  49

// Judgment the code of the number

Function checknumber (entry) {

Flag = false;

VAR OUTLT = New Array ("0", "1", "2", "3", "4", "5", "6", "8", "9", ".") ; // Replace this

For (var i = 0; i

{

Flag = false;

Temp = entry.substring (i, i 1);

FOR (var j = 0; j <11; j )

{

IF (Temp.indexof (OUTLT [J])> - 1)

{

Flag = true;

}

}

IF (Flag == False)

Break;

}

IF (Flag == false) Document.postform.user_time.value = "1";

;

}

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

New Post(0)