(推荐一个超好的JS函数库)S.Sams Lifexperience ScriptClassLib

2019-06-02 21:22:29于丽

612    */
613    IsNumberObj : function(objid){
614        return this.IsNumber(Sams_object.GetValue(objid));
615    },
616
617    /**//*    是否是自然数型数据
618        @str        字符集
619    */
620    IsInt : function(str){
621        if (/^(+|-)?d+$/.test(str)){return true;}else{return false;}
622    },
623
624    /**//*    是否是自然数型数据
625        @objid        对象ID
626    */
627    IsIntObj : function(objid){
628        return this.IsInt(Sams_object.GetValue(objid));
629    },
630    
631    /**//*    是否是中文字符
632        @str        字符集
633    */
634    IsChinese : function(str)
635    {
636        if (/^[u4e00-u9fa5]+$/.test(str)){return true;}else{return false;}
637    },
638
639    /**//*    是否是中文字符
640        @objid        对象ID
641    */
642    IsChineseObj : function(objid)
643    {
644        return this.IsChinese(Sams_object.GetValue(objid));
645    },
646
647    /**//*    是否为英文字母
648        @str        字符集
649    */
650    IsLower : function(str)
651    {
652         if (/^[A-Za-z]+$/.test(str)){return true}else{return false;}
653    },
654
655    /**//*    是否为英文字母
656        @objid        对象ID
657    */
658    IsLowerObj : function(objid)
659    {