JavaScript automatic check function (4) -Notnull verification

xiaoxiao2021-03-06  29

/ *** Checknotnull function verification This box is not empty, returned value is true and false, true and false; ** Object target object, Desc Chinese description. * /

Function ChecknotNull (Object, DESC)

{

Var strval = Object.value;

IF (Strvalue.Length == 0)

{

Alert ("" " desc " "Cannot be empty, please modify!");

Object.focus ();

Return False;

}

Else

{

Return True;

}

}

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

New Post(0)