<% / * =================================================================================================================================================================== =========================
JScript Source File - Created with Sapien Technologies Primalscript 3.1, SAPIEN TECHNOLOGIES PRIMALScript 3.1
Name:
Author: Paradis, Luo Yue Laoli Date: 2004-7-12
Comment:
============================================================================================================================================================================================================= =================================1; "Var errstring ="; "this.adderr = function (strrror) { Errstring = strerror;} this.GeterrorMsg = function () {return errString;}} / * string operation Trim (string): Remove the space between the strings =============== ============================================================================================================================================================================================================= = * / / * =============================================== ===================== Ltrim (String): Remove the left space ================================================================================================================================================================================================================================================= ==============================================
* // * * --------------- ISEMPTY (OBJ) ----------------- * iSempty (obj) * function: judgment Whether object OBJ is empty. Similar to VBScript ISempty * parameters: Obj, object. * --------------- iSempty (OBJ) ------------------------------------------------------------------------------------------------------------------------------ ----- * / Function ISempty (obj) {return! (O)! = "&& string (obj)! =" Undefined ")}
Function LTRIM (STR) {var whitespace = new string ("/ t / n / r"); var s = new string (STR); if (Whitespace.indexof (S.Charat (0))! = -1) { VAR J = 0, I = S.LENGTH; While (j = 0 && Whitespace.indexof (s.Charat (i))! = -1) {i-;} s = s.substring (0, i 1);} return S;} / * ======================================== =====================