jquery layui verify验证规则手机号邮箱身份证密码
未知
2021-09-11 18:08:13
0

    //检查用户名格式
    //符合邮箱格式并且在4-16位
    checkUserName: function (usrName) {
        if (!this.checkLoginEmail(usrName) && !(/^[a-zA-Z_\d]{4,16}$/.test(usrName))) {
            return false;
        }
        else {
            return true;
        }
    },
    //检查用户身份证号
    checkIDCard: function (value) {
        if (/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X|x)$/.test(value) || /^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$/.test(value)) {
            return true;
        }
        else {
            return false;
        }
    },
    //检查密码格式
    //密码格式:字母+数字+符号(符号:!@#^&*等)示例:cndns456@#!
    checkPassWord: function (usrPass) {
        //var acountreg = usrPass;

        //if (!/^[a-zA-Z\d!@#$%^~&*()_\-+=[{\]};:<>|./?]{6,16}$/.test(acountreg)) {
        //    return false;
        //} else {
        //    return true;
        //}

        if (!(/^.{6,16}$/.test(usrPass))) {
            return false;
        }

        if (!/^(?=.*[a-zA-Z])(?=.*[0-9])(?=.*[!@#$%^~&*()_\-+=[{\]};:<>|./?]).*$/.test(usrPass)) {
            return false;
        } else {
            return true;
        }
    },

    //检查登陆密码格式
    //密码格式:密码位数在6到16之间
    checkLoginPassWord: function (usrPass) {
        var acountreg = usrPass;

        if (!(/^.{6,16}$/.test(acountreg))) {
            return false;
        }
        else {
            return true;
        }
    },

    //检查邮箱格式
    checkLoginEmail: function (email) {
        var val = email;
        return /^[A-Za-z0-9\u4e00-\u9fa5\@\.\-\_]*$/.test(val);
    },
    //检查邮箱格式
    checkEmail: function (email) {
        var val = email;
        return /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(val);
        //return /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/.test(val);
    },

    //检查手机格式
    checkMobile: function (mobile) {
        var val = mobile;
        //  return /^(0)?((13|14|15|16|17|18)[0-9]\d{8})$/.test(val);
        return /^(0|"+")?((13|14|15|16|17|18|19)[0-9]\d{8})$/.test(val);
    },

    //检查是否是数字和字母
    checkNumberAndLetter: function (value) {
        return /^[0-9a-zA-Z]*$/g.test(value);
    },


    ///单独注册页面 手机号码 因为香港的手机号码 非1 开头
    cndnsMobile: function (mobile) {
        var val = mobile;
        return /^(0|\+|\+86)?(\d{9,14})$/.test(val);
    },

    //检查主机名称格式
    checkHostName: function (value) {
        if (value.length < 1) {
            return false;
        }
        var regExp = /^(\*)(\.([0-9a-zA-Z\-]+))*$/;
        var regExp2 = /^[\@|\*]{1}$/;
        var regExp3 = /^[0-9a-zA-Z\-]+(\.([0-9a-zA-Z\-]+))*$/;
        if (regExp.test(value) || regExp2.test(value) || regExp3.test(value)) {
            return true;
        }
        else {
            return false;
        }
    },

    //检查是否包中文
    checkChinese: function (value) {
        var boolTag = false;
        for (var i = 0; i < value.length; i++) {
            var tmpval = value.substr(i, 1)
            if (tmpval.charCodeAt() > 126) {
                boolTag = true;
                break;
            }
        }
        return boolTag;
    },

    //检查是否验证码(长度放开4到6位)
    checkPostcode: function (value) {
        return /^[A-Za-z0-9]{4,6}$/.test(value);
    },

    //检查是否是中文开头
    checkChineseInput: function (value) {
        return /^[\u4e00-\u9fa5]+(.*[\u4e00-\u9fa5]*)*$/.test(value);
    },

    //检查是否是英文开头
    checkEnglishInput: function (value) {
        return /^[A-Za-z0-9]+[^\u4e00-\u9fa5]*$/.test(value);
    },

    //检查是否是电话国别号
    checkCountyCode: function (value) {
        return /^\+\d{1,4}\.$/.test(value);
    },

    //检查是否是电话区号
    checkTelCode: function (value) {
        return /^\d{1,4}$/.test(value);
    },
    //检查是否是数字
    checkNumber: function (value) {
        return /^\d*$/.test(value);
    },
    //检查是否是电话号
    checkTel: function (value) {
        return /^\d{7,11}$/.test(value);
    },
    //检查是否是电话号
    checkTel1: function (value) {
        return /^(0)?[1-9][0-9]{8,10}$/.test(value);
    },
    //检查是否是电话号码
    checkIsphone: function (value) {
        return  /^(0|4)\d{2,3}-?\d{7,8}$|^1\d{10}$/.test(value);
    },
    //检查是否是英文所有者名称(放开中文逗号)
    checkEnglishName: function (value) {
        //return /^[A-Za-z]+(\x20|\&)[A-Za-z\d\x20\,\&\.\(\)]+$/.test(value);
        return /^[a-zA-Z0-9\,\-\+\.,()&]+\s[a-zA-Z0-9\,\-\+\.\s,()&]{1,105}$/.test(value);
    },

    //检查是否是英文
    checkEnglish: function (value) {
        return /^[A-Za-z\s]+$/.test(value);
    },

    //检查DNS
    checkDns: function (value) {
        var s = value.split(".");
        var ret = true;
        if (value.indexOf(".") < 0 || value.substr(0, 1) == "." || value.substr(value.length - 1, 1) == ".") {
            return false;
        }

        for (var irow = 0; irow < s.length; irow++) {
            if (!/^[a-zA-Z\d\u4E00-\u9FA5\-]/.test(s[irow]) || s[irow].indexOf("--") > -1) {
                ret = false;
                break;
            }
        }
        return ret;
    },
    //检查域名后缀
    checkDomainSuffix: function (value) {
        if (value.indexOf(".") < 0) {
            return false;
        }
        var info = value.split('.');
        if (info.length == 2) {
            return true;
        }
        if (info.length == 3) {
            var dom = ",.cn.com,.gov.cn,.com.cn,.net.cn,.org.cn,.ac.cn,.bj.cn,.sh.cn,.hk.cn,.tj.cn,.cq.cn,.he.cn,.sx.cn,.nm.cn,.ln.cn,.jl.cn,.hl.cn,.js.cn,.zj.cn,.ah.cn,.fj.cn,.jx.cn,.sd.cn,.ha.cn,.hb.cn,.hn.cn,.gd.cn,.gx.cn,.hi.cn,.sc.cn,.gz.cn,.yn.cn,.xz.cn,.sn.cn,.gs.cn,.qh.cn,.nx.cn,.xj.cn,.tw.cn,.mo.cn,.com.ag,.net.ag,.org.ag,.com.br,.net.br,.com.bz,.net.bz,.com.co,.net.co,.nom.co,.com.es,.net.es,.org.es,.co.in,.firm.in,.gen.in,.ind.in,.net.in,.org.in,.com.mx,.co.nz,.net.nz,.org.nz,.com.tw,.idv.tw,.org.tw,.co.uk,.me.uk,.co.jp,.org.uk,.com.hk,.idv.hk,.gov.hk,.edu.hk,.net.hk,";
            if (dom.indexOf(",." + info[1].toLowerCase() + "." + info[2].toLowerCase() + ",") >= 0) {
                return true;
            }
            else {
                return false;
            }
        }
        return false;
    },
    //检查英文域名
    checkEnDomain: function (value) {
        var pattern = /^[a-z0-9\-]+\.([a-z]{2,16}\.){0,1}[a-z]{2,16}$/i;
        return pattern.test(value);
    },
    //检查一级二级英文域名
    checkSencondEnDomain: function (value) {
        var pattern = /^(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,16})+$/i;
        return pattern.test(value);
    },
    //检查中文域名
    checkCnDomain: function (value) {
        var pattern = /^[A-Za-z0-9_\u4E00-\u9FA5]+([\.\-][A-Za-z0-9_\u4E00-\u9FA5]+)*$/;
        return pattern.test(value);
    },
    //检查输入的年份
    checkYear: function (value) {
        var pattern = /^[0-9]{1,2}$/;
        return pattern.test(value);
    },
    //检查管理DNS输入的密码
    checkDNSPassword: function (value) {
        var pattern = /^[a-zA-Z0-9]{6,16}$/;
        return pattern.test(value);
    },
    //仅支持字母、数字、中文、空格
    checkInputValue: function (value) {
        var pattern = /^[a-zA-Z\d\u4e00-\u9fa5\ \:]+$/;
        return pattern.test(value);
    },
    //检查是否是英文开头
    checkCopnme_cn: function (value) {
        return /^[\u4e00-\u9fa5]+(.*[\u4e00-\u9fa5]*)*$/.test(value);
    },
    //检查是否是域名格式
    checkSuffix: function (value) {
        return /^[A-Za-z0-9\.\-\u4E00-\u9FA5]*$/.test(value);
    },
    //检查是否是IP
    checkIp: function (value) {
        return /^([0-9]{1,3}\.{1}){3}[0-9]{1,3}$/.test(value);
    }
};

//验证用户姓名
function checkUserName(val) {
    var bl = false;
    if (/^[a-zA-Z\u4e00-\u9fa5]{2,50}$/.test(val)) {
        bl = true;
    }
    return bl;
}
//验证用户身份证号码
function checkUserNumber(val) {
    var bl = false;
    if (/^(\d{15}$|^\d{18}$|^\d{17}(\d|X|x))$/.test(val)) {
        bl = true;
    }
    return bl;
}
//验证公司营业执照(只验证营业执照)
function checkBusiness(val) {
    var bl = false;
    if (/^[a-zA-Z\d\u4e00-\u9fa5\(\)]{6,30}$/.test(val)) {
        bl = true;
    }
    return bl;

}
//验证公司名称
function checkCorporate(val) {

    var bl = false;
    if (/^[a-zA-Z\u4e00-\u9fa5\d][a-zA-Z\u4e00-\u9fa5\d\ \.\,\(\)]{2,150}$/.test(val)) {
        bl = true;
    }
    return bl;
}

function getdmroot(val) {
    var domainAllSuffix = "|com.au|org.mo|ae.org|br.com|ru.com|sa.com|de.com|eu.com|gb.com|gr.com|hu.com|jpn.com|kr.com|no.com|qc.com|us.com|uy.com|za.com|se.net|com.co|co.in|com.ru|firm.in|gb.net|gen.in|ind.in|net.co|net.in|net.nz|net.ru|nom.co|org.in|org.nz|org.ru|co.uk|aaa|aarp|abarth|abb|abbott|abbvie|abc|able|abogado|abudhabi|academy|accenture|accountant|accountants|acer|aco|active|actor|adac|ads|adult|aeg|aetna|afamilycompany|afl|africa|africamagic|agakhan|agency|aig|aigo|airbus|airforce|airtel|akdn|alcon|alfaromeo|alibaba|alipay|allfinanz|allfinanzberater|allfinanzberatung|allstate|ally|alsace|alstom|amazon|americanexpress|americanfamily|amex|amfam|amica|amp|amsterdam|analytics|android|anquan|antivirus|anz|aol|apartments|app|apple|aquarelle|aquitaine|arab|aramco|archi|army|art|arte|asda|associates|athleta|attorney|auction|audi|audible|audio|auspost|author|auto|autos|avianca|aws|axa|azure|baby|baidu|banamex|bananarepublic|band|bank|banque|bar|barcelona|barclaycard|barclays|barefoot|bargains|baseball|basketball|bauhaus|bayern|bbb|bbc|bbt|bbva|bcg|bcn|beats|beauty|beer|bentley|berlin|best|bestbuy|bet|bharti|bible|bid|bike|bing|bingo|bio|black|blackfriday|blanco|blockbuster|blog|bloomberg|blue|bms|bmw|bnl|bnpparibas|boats|boehringer|bofa|bom|bond|boo|book|booking|boots|bosch|bostik|boston|bot|boutique|box|bradesco|bridgestone|broadway|broker|brother|brussels|budapest|bugatti|build|builders|business|buy|buzz|bzh|cab|cafe|cal|call|calvinklein|cam|camera|camp|canalplus|cancerresearch|canon|capetown|capital|capitalone|car|caravan|cards|care|career|careers|cars|cartier|casa|case|caseih|cash|cashbackbonus|casino|catering|catholic|cba|cbn|cbre|cbs|ceb|center|ceo|cern|cfa|cfd|chanel|changiairport|channel|charity|chase|chat|cheap|chintai|chloe|christmas|chrome|chrysler|church|cimb|cipriani|circle|cisco|citadel|citi|citic|city|cityeats|claims|cleaning|click|clinic|clinique|clothing|cloud|club|clubmed|coach|codes|coffee|college|cologne|comcast|commbank|community|company|compare|computer|comsec|condos|construction|consulting|contact|contractors|cooking|cookingchannel|cool|corp|corsica|country|coupon|coupons|courses|cpa|credit|creditcard|creditunion|cricket|crown|crs|cruise|cruises|csc|cuisinella|cymru|cyou|dabur|dad|dance|data|date|dating|datsun|day|dclk|dds|deal|dealer|deals|degree|delivery|dell|deloitte|delta|democrat|dental|dentist|desi|design|deutschepost|dev|dhl|diamonds|diet|digikey|digital|direct|directory|discount|discover|dish|diy|dnb|dnp|docomo|docs|doctor|dodge|dog|doha|domains|doosan|dot|download|drive|dstv|dtv|dubai|duck|dunlop|duns|dupont|durban|dvag|dvr|dwg|earth|eat|eco|edeka|education|email|emerck|emerson|energy|engineer|engineering|enterprises|epost|epson|equipment|ericsson|erni|esq|estate|esurance|etisalat|eurovision|eus|events|everbank|exchange|expert|exposed|express|extraspace|fage|fail|fairwinds|faith|family|fan|fans|farm|farmers|fashion|fast|fedex|feedback|ferrari|ferrero|fiat|fidelity|fido|film|final|finance|financial|financialaid|finish|fire|firestone|firmdale|fish|fishing|fit|fitness|flickr|flights|flir|florist|flowers|flsmidth|fly|foo|food|foodnetwork|football|ford|forex|forsale|forum|foundation|fox|free|fresenius|frl|frogans|frontdoor|frontier|ftr|fujitsu|fujixerox|fun|fund|furniture|futbol|fyi|gal|gallery|gallo|gallup|game|games|gap|garden|gay|gbiz|gdn|gea|gecompany|ged|gent|genting|george|ggee|gift|gifts|gives|giving|glade|glass|gle|global|globo|gmail|gmbh|gmo|gmx|godaddy|gold|goldpoint|golf|goo|goodhands|goodyear|goog|google|gop|got|gotv|grainger|graphics|gratis|green|gripe|grocery|group|guardian|gucci|guge|guide|guitars|guru|hair|halal|hamburg|hangout|haus|hbo|hdfc|hdfcbank|health|healthcare|help|helsinki|here|hermes|hgtv|hiphop|hisamitsu|hitachi|hiv|hkt|hockey|holdings|holiday|home|homedepot|homegoods|homes|homesense|honda|honeywell|horse|host|hosting|hot|hoteis|hotel|hoteles|hotels|hotmail|house|how|hsbc|htc|hughes|hyatt|hyundai|ibm|icbc|ice|icu|idn|ieee|ifm|iinet|ikano|imamat|imdb|immo|immobilien|inc|indians|industries|infiniti|infosys|infy|ing|ink|institute|insurance|insure|intel|international|intuit|investments|ipiranga|ira|irish|iselect|islam|ismaili|ist|istanbul|itau|itv|iveco|iwc|jaguar|java|jcb|jcp|jeep|jetzt|jewelry|jio|jlc|jll|jmp|jnj|joburg|jot|joy|jpmorgan|jpmorganchase|jprs|juegos|juniper|justforu|kaufen|kddi|kerryhotels|kerrylogistics|kerryproperties|kfh|kia|kid|kids|kim|kinder|kindle|kitchen|kiwi|koeln|komatsu|konami|kone|kosher|kpmg|kpn|krd|kred|kuokgroup|kyknet|kyoto|lacaixa|ladbrokes|lamborghini|lamer|lancaster|lancia|lancome|land|landrover|lanxess|lasalle|lat|latino|latrobe|law|lawyer|lds|lease|leclerc|lefrak|legal|lego|lexus|lgbt|liaison|lidl|life|lifeinsurance|lifestyle|lighting|like|lilly|limited|limo|lincoln|linde|link|lipsy|live|livestrong|living|lixil|llc|llp|loan|loans|locker|locus|loft|lol|london|lotte|lotto|love|lpl|lplfinancial|ltd|ltda|lundbeck|lupin|luxe|luxury|macys|madrid|maif|mail|maison|makeup|man|management|mango|map|market|marketing|markets|marriott|marshalls|maserati|mattel|mba|mcd|mcdonalds|mckinsey|med|media|meet|melbourne|meme|memorial|men|menu|meo|merck|merckmsd|metlife|miami|microsoft|mih|mini|mint|mit|mitsubishi|mlb|mls|mma|mnet|mobile|mobily|moda|moe|moi|mom|monash|money|monster|montblanc|mopar|mormon|mortgage|moscow|moto|motorcycles|mov|movie|movistar|mozaic|mrmuscle|mrporter|msd|mtn|mtpc|mtr|multichoice|music|mutual|mutualfunds|mutuelle|mzansimagic|nab|nadex|nagoya|naspers|nationwide|natura|navy|nba|nec|netaporter|netbank|netflix|network|neustar|new|newholland|news|next|nextdirect|nexus|nfl|ngo|nhk|nico|nike|nikon|ninja|nissan|nissay|nokia|northwesternmutual|norton|now|nowruz|nowtv|nra|nrw|ntt|nyc|obi|observer|off|office|okinawa|olayan|olayangroup|oldnavy|ollo|omega|one|ong|onl|online|onyourside|ooo|open|oracle|orange|organic|orientexpress|origins|osaka|otsuka|ott|ovh|page|pamperedchef|panasonic|panerai|paris|pars|partners|parts|party|passagens|pay|payu|pccw|persiangulf|pet|pets|pfizer|pharmacy|phd|philips|phone|photo|photography|photos|physio|piaget|pics|pictet|pictures|pid|pin|ping|pink|pioneer|piperlime|pitney|pizza|place|play|playstation|plumbing|plus|pnc|pohl|poker|politie|porn|pramerica|praxi|press|prime|prod|productions|prof|progressive|promo|properties|property|protection|pru|prudential|pub|pwc|qpon|qtel|quebec|quest|qvc|racing|radio|raid|ram|read|realestate|realtor|realty|recipes|red|redstone|redumbrella|rehab|reise|reisen|reit|reliance|ren|rent|rentals|repair|report|republican|rest|restaurant|retirement|review|reviews|rexroth|rich|richardli|ricoh|rightathome|ril|rio|rip|rmit|rocher|rocks|rockwool|rodeo|rogers|room|rsvp|rugby|ruhr|run|rwe|ryukyu|saarland|safe|safety|safeway|sakura|sale|salon|samsclub|samsung|sandvik|sandvikcoromant|sanofi|sap|sapo|sarl|sas|save|saxo|sbi|sbs|sca|scb|schaeffler|schmidt|scholarships|school|schule|schwarz|schwarzgroup|science|scjohnson|scor|scot|search|seat|secure|security|seek|select|sener|services|ses|seven|sew|sex|sexy|sfr|shangrila|sharp|shaw|shell|shia|shiksha|shoes|shop|shopping|shopyourway|shouji|show|showtime|shriram|silk|sina|singles|site|ski|skin|sky|skype|sling|smart|smile|sncf|soccer|social|softbank|software|sohu|solar|solutions|song|sony|soy|spa|space|spiegel|sport|spot|spreadbetting|srl|srt|stada|staples|star|starhub|statebank|statefarm|statoil|stc|stcgroup|stockholm|storage|store|stream|studio|study|style|sucks|supersport|supplies|supply|support|surf|surgery|suzuki|swatch|swiftcover|swiss|sydney|symantec|systems|tab|taipei|talk|taobao|target|tata|tatamotors|tatar|tattoo|tax|taxi|tci|tdk|team|tech|technology|telecity|telefonica|temasek|tennis|terra|teva|thd|theater|theatre|theguardian|tiaa|tickets|tienda|tiffany|tips|tires|tirol|tjmaxx|tjx|tkmaxx|tmall|today|tokyo|tools|top|toray|toshiba|total|tour|tours|town|toyota|toys|trade|tradershotels|trading|training|translations|transunion|travelchannel|travelers|travelersinsurance|travelguard|trust|trv|tube|tui|tunes|tushu|tvs|ubank|ubs|uconnect|ultrabook|unicom|unicorn|university|uno|uol|ups|vacations|vana|vanguard|vanish|vegas|ventures|verisign|versicherung|vet|viajes|video|vig|viking|villas|vin|vip|virgin|visa|vision|vista|vistaprint|viva|vivo|vlaanderen|vodka|volkswagen|volvo|vons|vote|voting|voto|voyage|vuelos|wales|walmart|walter|wang|wanggou|warman|watch|watches|weather|weatherchannel|web|webcam|weber|webjet|webs|website|wed|wedding|weibo|weir|whoswho|wien|wiki|williamhill|wilmar|win|windows|wine|winners|wme|wolterskluwer|woodside|work|works|world|wow|wtc|wtf|xbox|xerox|xfinity|xihuan|xin|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--30rr7y|xn--3bst00m|xn--3ds443g|xn--3oq18vl8pn36a|xn--3pxu8k|xn--42c2d9a|xn--45q11c|xn--4gbrim|xn--4gq48lf9j|xn--55qw42g|xn--55qx5d|xn--55qx5d8y0buji4b870u|xn--5su34j936bgsg|xn--5tzm5g|xn--6frz82g|xn--6qq986b3xl|xn--80adxhks|xn--80aqecdr1a|xn--80asehdb|xn--80aswg|xn--8y0a063a|xn--9dbq2a|xn--9et52u|xn--9krt00a|xn--b4w605ferd|xn--bck1b9a5dre4c|xn--c1avg|xn--c1yn36f|xn--c2br7g|xn--cck2b3b|xn--cckwcxetd|xn--cg4bki|xn--czr694b|xn--czrs0t|xn--czru2d|xn--d1acj3b|xn--eckvdtc9d|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fhbei|xn--fiq228c5hs|xn--fiq64b|xn--fjq720a|xn--flw351e|xn--fzys8d69uvgm|xn--g2xx48c|xn--gckr3f0f|xn--gk3at1e|xn--hxt035czzpffl|xn--hxt814e|xn--i1b6b1a6a2e|xn--imr513n|xn--io0a7i|xn--j1aef|xn--jlq480n2rg|xn--jlq61u9w7b|xn--jvr189m|xn--kcrx77d1x4a|xn--kpu716f|xn--kput3i|xn--mgba3a3ejt|xn--mgba7c0bbn0a|xn--mgbaakc7dvf|xn--mgbab2bd|xn--mgbb9fbpob|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbt3dhd|xn--mgbv6cfpo|xn--mk1bu44c|xn--mxtq1m|xn--ngbc5azd|xn--ngbe9e0a|xn--ngbrx|xn--nqv7f|xn--nqv7fs00ema|xn--nyqy26a|xn--p1acf|xn--pbt977c|xn--pgb3ceoj|xn--pssy2u|xn--q9jyb4c|xn--qcka1pmc|xn--rhqv96g|xn--rovu88b|xn--ses554g|xn--t60b56a|xn--tckwe|xn--tiq49xqyj|xn--unup4y|xn--vermgensberater-ctb|xn--vermgensberatung-pwb|xn--vhquv|xn--vuq861b|xn--w4r85el8fhu5dnra|xn--w4rs40l|xn--xhq521b|xn--zfr164b|xperia|xyz|yachts|yahoo|yamaxun|yandex|yellowpages|yodobashi|yoga|yokohama|you|youtube|yun|zappos|zara|zero|zip|zippo|zone|zuerich|八卦|餐厅|慈善|大拿|大众汽车|淡马锡|点看|點看|電訊盈科|飞利浦|佛山|工行|公益|购物|谷歌|广东|机构|集团|家電|嘉里|嘉里大酒店|健康|联通|诺基亚|企业|商标|商城|商店|盛贸饭店|时尚|食品|世界|手表|手机|書籍|天主教|通販|通用电气公司|网店|网站|网址|微博|我爱你|香格里拉|新闻|信息|亚马逊|一号店|移动|游戏|娱乐|在线|政府|政务|中文网|中信|珠宝|组织机构|香港|中国|公司|网络|xn--j6w193g|xn--io0a7i|xn--55qx5d|xn--fiqs8s|aero|asia|biz|cat|cn.com|org.hk|com.cn|com.sg|com|net.cn|org.cn|gov.cn|coop|edu|gov|info|int|jobs|mil|mobi|museum|name|net|org|pro|tel|travel|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|co|cr|cs|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zr|zw|co.nz|bj.cn|fj.cn|sh.cn|jx.cn|tj.cn|sd.cn|cq.cn|ha.cn|he.cn|hb.cn|sx.cn|hn.cn|nm.cn|gd.cn|ln.cn|gx.cn|jl.cn|hi.cn|hl.cn|sc.cn|js.cn|gz.cn|zj.cn|yn.cn|ah.cn|xz.cn|sn.cn|tw.cn|edu.cn|gs.cn|com.hk|hk.cn|qh.cn|mo.cn|nx.cn|xj.cn|ac.cn|sn.cn|cn|co.kr|";
    if (domainAllSuffix.indexOf("|" + val + "|") >= 0) {
        return true;
    }
    return false;
}

function checkFormail(val) {
    var bl = false;
    if (/^([a-zA-Z0-9]+([.]?[a-zA-Z0-9])*){4,16}$/.test(val)) {
        bl = true;
    }
    return bl;
}

function getstrlength(str) {
    ///<summary>获得字符串实际长度,中文2,英文1</summary>
    ///<param name="str">要获得长度的字符串</param>
    var realLength = 0, len = str.length, charCode = -1;
    for (var i = 0; i < len; i++) {
        charCode = str.charCodeAt(i);
        if (charCode >= 0 && charCode <= 128)
            realLength += 1;
        else
            realLength += 2;
    }
    return realLength;
}

相关内容

拼多多购物优惠券,优惠力度...
拼多多购物优惠券种类多,优惠力度大,可省下不少钱。可通过平台活动、...
2024-11-20 12:00:43
穿梭框layui.tran...
div id=test1 class=demo-transfer/...
2024-04-09 15:59:09
tp5和layui表单提交...
form class=layui-form layui-form-...
2024-04-09 14:45:31
tp5 layui登录时失...
使用tp5和layui框架结合的登录页面,在首次登录时不出现验证码...
2024-02-26 09:59:58
jquery实现全屏退出全...
问题描述: 做一个网站,用户需要把网站用在大屏幕上,触摸屏。所以没...
2023-12-16 15:47:06
layui数据接口请求异常...
layui数据接口请求异常:parsererror
2023-12-16 15:43:27

热门资讯

JavaScript获取当前协... JavaScript获取当前协议,域名,路径
解决Phpcms V9手机门户... 第一步:开启手机网站。位置:模块 》手机门户 》 添加手机站点,如果模块里面没有手机门户,那么就在模...
layui tooltip提示... 在layui表单中,我们想把一个标签做出提示,以标明这个表单元素是做什么有什么功能时,就可以用上提...
layui中出错Unexpec... layui中出错Unexpected identifier
如何在html中禁止复制文字 问题描述: 如何禁止别人复制自己的文章? 解决办法: 在body标签中添加以下代码: onconte...
JS实现html打印功能,打印... !DOCTYPE htmlhtmlhead meta charset=utf-8 title打印功能...
bootstrap 图片文字居... 问题描述: 让图片和文字居中显示。 解决办法: !-- style--.navbars img{ m...
bootstrap图片排版布局 问题描述: 在使用bootstrap的时候,出现了这样的问题。 排版对不齐。 解决办法: 通过上图发...
手机端底部定位 问题描述: 需要实现的效果 解决办法: !-- 底部 -- div class=layui-row ...