亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? common.js

?? js基本操作
?? JS
字號:
/*	Copyright (c) 2004-2006, The Dojo Foundation	All Rights Reserved.	Licensed under the Academic Free License version 2.1 or above OR the	modified BSD license. For more information on Dojo licensing, see:		http://dojotoolkit.org/community/licensing.shtml*/dojo.provide("dojo.validate.common");dojo.require("dojo.regexp");dojo.validate.isText = function(/*String*/value, /*Object?*/flags){// summary://	Checks if a string has non whitespace characters. //	Parameters allow you to constrain the length.//// value: A string// flags: {length: Number, minlength: Number, maxlength: Number}//    flags.length  If set, checks if there are exactly flags.length number of characters.//    flags.minlength  If set, checks if there are at least flags.minlength number of characters.//    flags.maxlength  If set, checks if there are at most flags.maxlength number of characters.	flags = (typeof flags == "object") ? flags : {};	// test for text	if(/^\s*$/.test(value)){ return false; } // Boolean	// length tests	if(typeof flags.length == "number" && flags.length != value.length){ return false; } // Boolean	if(typeof flags.minlength == "number" && flags.minlength > value.length){ return false; } // Boolean	if(typeof flags.maxlength == "number" && flags.maxlength < value.length){ return false; } // Boolean	return true; // Boolean}dojo.validate.isInteger = function(/*String*/value, /*Object?*/flags){// summary://	Validates whether a string is in an integer format//// value  A string// flags  {signed: Boolean|[true,false], separator: String}//    flags.signed  The leading plus-or-minus sign.  Can be true, false, or [true, false].//      Default is [true, false], (i.e. sign is optional).//    flags.separator  The character used as the thousands separator.  Default is no separator.//      For more than one symbol use an array, e.g. [",", ""], makes ',' optional.	var re = new RegExp("^" + dojo.regexp.integer(flags) + "$");	return re.test(value); // Boolean}dojo.validate.isRealNumber = function(/*String*/value, /*Object?*/flags){// summary://	Validates whether a string is a real valued number. //	Format is the usual exponential notation.//// value: A string// flags: {places: Number, decimal: String, exponent: Boolean|[true,false], eSigned: Boolean|[true,false], ...}//    flags.places  The integer number of decimal places.//      If not given, the decimal part is optional and the number of places is unlimited.//    flags.decimal  The character used for the decimal point.  Default is ".".//    flags.exponent  Express in exponential notation.  Can be true, false, or [true, false].//      Default is [true, false], (i.e. the exponential part is optional).//    flags.eSigned  The leading plus-or-minus sign on the exponent.  Can be true, false, //      or [true, false].  Default is [true, false], (i.e. sign is optional).//    flags in regexp.integer can be applied.	var re = new RegExp("^" + dojo.regexp.realNumber(flags) + "$");	return re.test(value); // Boolean}dojo.validate.isCurrency = function(/*String*/value, /*Object?*/flags){// summary://	Validates whether a string denotes a monetary value. // value: A string// flags: {signed:Boolean|[true,false], symbol:String, placement:String, separator:String,//	fractional:Boolean|[true,false], decimal:String}//    flags.signed  The leading plus-or-minus sign.  Can be true, false, or [true, false].//      Default is [true, false], (i.e. sign is optional).//    flags.symbol  A currency symbol such as Yen "?", Pound "?", or the Euro sign "?".  //      Default is "$".  For more than one symbol use an array, e.g. ["$", ""], makes $ optional.//    flags.placement  The symbol can come "before" the number or "after".  Default is "before".//    flags.separator  The character used as the thousands separator. The default is ",".//    flags.fractional  The appropriate number of decimal places for fractional currency (e.g. cents)//      Can be true, false, or [true, false].  Default is [true, false], (i.e. cents are optional).//    flags.decimal  The character used for the decimal point.  Default is ".".	var re = new RegExp("^" + dojo.regexp.currency(flags) + "$");	return re.test(value); // Boolean}dojo.validate.isInRange = function(/*String*/value, /*Object?*/flags){//summary://	Validates whether a string denoting an integer, //	real number, or monetary value is between a max and min. //// value: A string// flags: {max:Number, min:Number, decimal:String}//    flags.max  A number, which the value must be less than or equal to for the validation to be true.//    flags.min  A number, which the value must be greater than or equal to for the validation to be true.//    flags.decimal  The character used for the decimal point.  Default is ".".	//stripping the separator allows NaN to perform as expected, if no separator, we assume ','	//once i18n support is ready for this, instead of assuming, we default to i18n's recommended value	value = value.replace(dojo.lang.has(flags,'separator')?flags.separator:',', '', 'g').		replace(dojo.lang.has(flags,'symbol')?flags.symbol:'$', '');	if(isNaN(value)){		return false; // Boolean	}	// assign default values to missing paramters	flags = (typeof flags == "object") ? flags : {};	var max = (typeof flags.max == "number") ? flags.max : Infinity;	var min = (typeof flags.min == "number") ? flags.min : -Infinity;	var dec = (typeof flags.decimal == "string") ? flags.decimal : ".";		// splice out anything not part of a number	var pattern = "[^" + dec + "\\deE+-]";	value = value.replace(RegExp(pattern, "g"), "");	// trim ends of things like e, E, or the decimal character	value = value.replace(/^([+-]?)(\D*)/, "$1");	value = value.replace(/(\D*)$/, "");	// replace decimal with ".". The minus sign '-' could be the decimal!	pattern = "(\\d)[" + dec + "](\\d)";	value = value.replace(RegExp(pattern, "g"), "$1.$2");	value = Number(value);	if ( value < min || value > max ) { return false; } // Boolean	return true; // Boolean}dojo.validate.isNumberFormat = function(/*String*/value, /*Object?*/flags){// summary://	Validates any sort of number based format//// description://	Use it for phone numbers, social security numbers, zip-codes, etc.//	The value can be validated against one format or one of multiple formats.////  Format//    #        Stands for a digit, 0-9.//    ?        Stands for an optional digit, 0-9 or nothing.//    All other characters must appear literally in the expression.////  Example   //    "(###) ###-####"       ->   (510) 542-9742//    "(###) ###-#### x#???" ->   (510) 542-9742 x153//    "###-##-####"          ->   506-82-1089       i.e. social security number//    "#####-####"           ->   98225-1649        i.e. zip code//// value: A string// flags: {format:String}//    flags.format  A string or an Array of strings for multiple formats.	var re = new RegExp("^" + dojo.regexp.numberFormat(flags) + "$", "i");	return re.test(value); // Boolean}dojo.validate.isValidLuhn = function(/*String*/value){//summary: Compares value against the Luhn algorithm to verify its integrity	var sum, parity, curDigit;	if(typeof value!='string'){		value = String(value);	}	value = value.replace(/[- ]/g,''); //ignore dashes and whitespaces	parity = value.length%2;	sum=0;	for(var i=0;i<value.length;i++){		curDigit = parseInt(value.charAt(i));		if(i%2==parity){			curDigit*=2;		}		if(curDigit>9){			curDigit-=9;		}		sum+=curDigit;	}	return !(sum%10); //Boolean}/**	Procedural API Description		The main aim is to make input validation expressible in a simple format.		You define profiles which declare the required and optional fields and any constraints they might have.		The results are provided as an object that makes it easy to handle missing and invalid input.	Usage		var results = dojo.validate.check(form, profile);	Profile Object		var profile = {			// filters change the field value and are applied before validation.			trim: ["tx1", "tx2"],			uppercase: ["tx9"],			lowercase: ["tx5", "tx6", "tx7"],			ucfirst: ["tx10"],			digit: ["tx11"],			// required input fields that are blank will be reported missing.			// required radio button groups and drop-down lists with no selection will be reported missing.			// checkbox groups and selectboxes can be required to have more than one value selected.			// List required fields by name and use this notation to require more than one value: {checkboxgroup: 2}, {selectboxname: 3}.			required: ["tx7", "tx8", "pw1", "ta1", "rb1", "rb2", "cb3", "s1", {"doubledip":2}, {"tripledip":3}],			// dependant/conditional fields are required if the target field is present and not blank.			// At present only textbox, password, and textarea fields are supported.			dependencies:	{				cc_exp: "cc_no",					cc_type: "cc_no",				},			// Fields can be validated using any boolean valued function.  			// Use arrays to specify parameters in addition to the field value.			constraints: {				field_name1: myValidationFunction,				field_name2: dojo.validate.isInteger,				field_name3: [myValidationFunction, additional parameters],				field_name4: [dojo.validate.isValidDate, "YYYY.MM.DD"],				field_name5: [dojo.validate.isEmailAddress, false, true],			},			// Confirm is a sort of conditional validation.			// It associates each field in its property list with another field whose value should be equal.			// If the values are not equal, the field in the property list is reported as Invalid. Unless the target field is blank.			confirm: {				email_confirm: "email",					pw2: "pw1",				}		};	Results Object		isSuccessful(): Returns true if there were no invalid or missing fields, else it returns false.		hasMissing():  Returns true if the results contain any missing fields.		getMissing():  Returns a list of required fields that have values missing.		isMissing(field):  Returns true if the field is required and the value is missing.		hasInvalid():  Returns true if the results contain fields with invalid data.		getInvalid():  Returns a list of fields that have invalid values.		isInvalid(field):  Returns true if the field has an invalid value.*/

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产日韩精品一区| 亚洲欧美成人一区二区三区| 不卡一区二区三区四区| 亚洲chinese男男1069| 国产亚洲短视频| 欧美久久久影院| 91污在线观看| 国产成人自拍网| 美女视频一区二区| 亚洲最快最全在线视频| 欧美国产激情二区三区| 91精品国产麻豆国产自产在线| 99久久国产综合精品麻豆| 国内久久婷婷综合| 美女久久久精品| 首页国产丝袜综合| 一区二区三区在线观看网站| 中文一区二区完整视频在线观看 | 精一区二区三区| 午夜精品久久久久久久99樱桃| 国产精品久久久99| 久久久久久久久久久黄色| 欧美一区二区女人| 欧美久久一区二区| 欧美三级在线视频| 欧美日韩五月天| 在线观看一区不卡| 色视频欧美一区二区三区| 成人午夜在线播放| 国产精品18久久久久久vr| 美国十次综合导航| 蜜臀av国产精品久久久久| 欧美aaaaaa午夜精品| 亚洲高清视频中文字幕| 一区二区三区久久| 亚洲一线二线三线久久久| 亚洲女同一区二区| 亚洲欧美福利一区二区| 亚洲欧美日韩久久| 亚洲综合在线第一页| 亚洲精品视频一区二区| 亚洲激情第一区| 一区二区三区久久| 亚洲午夜免费福利视频| 午夜电影网亚洲视频| 日本91福利区| 狠狠色综合色综合网络| 国产一区不卡精品| 国产福利一区二区三区在线视频| 国产很黄免费观看久久| 国产69精品一区二区亚洲孕妇| 国产成人在线视频网址| av在线免费不卡| 日本大香伊一区二区三区| 欧美色爱综合网| 6080国产精品一区二区| 日韩美女在线视频| 日本一区二区三区四区| 最新久久zyz资源站| 一级中文字幕一区二区| 奇米在线7777在线精品| 国产在线一区二区| av成人老司机| 欧美精品一卡两卡| 久久久亚洲午夜电影| 亚洲天堂久久久久久久| 亚洲午夜羞羞片| 国产麻豆视频一区| 一本久久综合亚洲鲁鲁五月天| 在线亚洲一区观看| 欧美sm极限捆绑bd| 国产精品高潮久久久久无| 亚洲福利视频一区二区| 极品少妇xxxx精品少妇| 91香蕉视频在线| 日韩欧美一级二级| 中文字幕视频一区二区三区久| 性欧美大战久久久久久久久| 极品少妇xxxx精品少妇| 91久久精品一区二区三| 欧美成人福利视频| 亚洲欧美激情小说另类| 黄色精品一二区| 欧美天堂一区二区三区| 国产色综合久久| 午夜精品久久一牛影视| 国产.欧美.日韩| 6080国产精品一区二区| 国产精品国产三级国产a | 久久成人久久爱| 91麻豆国产自产在线观看| 久久免费国产精品| 亚洲国产日产av| 成人爱爱电影网址| 日韩一区国产二区欧美三区| 国产精品毛片大码女人| 男女男精品视频| 91老师片黄在线观看| 精品福利二区三区| 五月激情六月综合| 91理论电影在线观看| 久久精品欧美一区二区三区不卡| 亚洲第一电影网| 91在线免费看| 久久久久久久久蜜桃| 日韩av在线播放中文字幕| 91丝袜美腿高跟国产极品老师| 久久蜜臀精品av| 美日韩一区二区| 欧美丰满少妇xxxxx高潮对白| 亚洲丝袜另类动漫二区| 极品少妇一区二区三区精品视频| 欧美日韩一卡二卡三卡| 最新国产精品久久精品| 国产很黄免费观看久久| 欧美videofree性高清杂交| 丝瓜av网站精品一区二区| 在线精品视频一区二区| 亚洲人成网站影音先锋播放| 国产成人精品影视| 久久久影视传媒| 国产麻豆91精品| 精品国产sm最大网站| 日韩精品欧美精品| 欧美三级乱人伦电影| 亚洲一区二区三区免费视频| 一本色道久久综合精品竹菊| 国产精品不卡视频| 99久久精品免费观看| 国产精品卡一卡二卡三| 丁香六月久久综合狠狠色| www国产精品av| 国产麻豆精品theporn| 精品国产欧美一区二区| 国内久久精品视频| 精品99999| 国产福利不卡视频| 亚洲国产精品成人综合| 国产成人av一区二区| 欧美激情综合在线| 成人网在线免费视频| 中文字幕在线免费不卡| 99精品欧美一区二区三区综合在线| 中文字幕欧美一区| 91黄色在线观看| 偷拍与自拍一区| 精品国产网站在线观看| 国产精品一线二线三线精华| 国产女同性恋一区二区| 99视频在线精品| 亚洲综合一区二区精品导航| 欧美精品123区| 韩国欧美国产一区| 中文字幕一区二区三区乱码在线 | 极品少妇一区二区| 久久精品亚洲麻豆av一区二区| 成人福利视频在线| 一区二区三区免费观看| 4438x成人网最大色成网站| 韩国一区二区在线观看| 国产精品美女久久久久aⅴ| 色婷婷香蕉在线一区二区| 日韩激情一二三区| 久久久久国产精品人| 播五月开心婷婷综合| 亚洲一区二区三区四区中文字幕| 欧美日韩国产成人在线91| 黄色小说综合网站| 亚洲精品乱码久久久久久久久| 欧美专区亚洲专区| 精久久久久久久久久久| 1区2区3区精品视频| 欧美区在线观看| 国产成人在线观看免费网站| 夜夜嗨av一区二区三区| 欧美mv和日韩mv的网站| www.亚洲色图| 日本女人一区二区三区| 中文字幕精品一区| 337p亚洲精品色噜噜| 成人自拍视频在线观看| 亚洲成人一区在线| 国产欧美精品一区| 在线播放亚洲一区| 成人av资源在线| 五月开心婷婷久久| 中文字幕一区二区三| 欧美videos中文字幕| 色香色香欲天天天影视综合网| 精品一区二区三区不卡| 夜夜嗨av一区二区三区四季av| 国产亚洲欧美日韩日本| 欧美日韩免费不卡视频一区二区三区| 国产一区二区三区在线观看免费视频| 一区二区三区中文字幕| 国产亚洲一区二区在线观看| 欧美乱妇15p| 色妞www精品视频| 国产成人精品免费在线| 毛片av一区二区|