Mandatory type conversion function in JS

xiaoxiao2021-03-06  40

This afternoon, I am depressed, I can't figure it out, I will understand that if the two VAR type variables are directly used>

So I used a mandatory type conversion function. PARSEFLOAT ()

Function isquantityOutofrange (Theform)

{

Alert ('Aaaaaaaaaaaaaaaaaaaaaaa);

Var msg = "Please enter a legal number";

Var len = theform.quantity2.Length;

For (var i = 0; i

{

Var quanfield = theform.quantity2 [i] .value;

Var OriginalQuanfield = Theform.originalQuantity [i] .value;

Alert (Quanfield '-------' OriginalQuanfield "------- ');

IF (Parsefloat (OriginalQuanfield)

Alert ('No.'s (i 1) "number exceeds the number of protocols');

Return True;

}

}

Return False;

}

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

New Post(0)