⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 us.js

📁 dojo与json创建无限级树的时候,当在父结点下添加了一个新结点,我怎么让父亲结点重新调用json加载一下子结点内容.
💻 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.us");dojo.require("dojo.validate.common");/**  Validates U.S. currency.  @param value  A string.  @param flags  An object.    flags in validate.isCurrency can be applied.  @return  true or false.*/dojo.validate.us.isCurrency = function(value, flags) {	return dojo.validate.isCurrency(value, flags);}/**  Validates US state and territory abbreviations.	@param value  A two character string.  @param flags  An object.    flags.allowTerritories  Allow Guam, Puerto Rico, etc.  Default is true.    flags.allowMilitary  Allow military 'states', e.g. Armed Forces Europe (AE).  Default is true.  @return  true or false*/dojo.validate.us.isState = function(value, flags) {	var re = new RegExp("^" + dojo.regexp.us.state(flags) + "$", "i");	return re.test(value);}/**  Validates 10 US digit phone number for several common formats:  @param value The telephone number string  @return true or false*/dojo.validate.us.isPhoneNumber = function(value) {	var flags = {		format: [			"###-###-####",			"(###) ###-####",			"(###) ### ####",			"###.###.####",			"###/###-####",			"### ### ####",			"###-###-#### x#???",			"(###) ###-#### x#???",			"(###) ### #### x#???",			"###.###.#### x#???",			"###/###-#### x#???",			"### ### #### x#???",			"##########"		]	};	return dojo.validate.isNumberFormat(value, flags);}// Validates social security numberdojo.validate.us.isSocialSecurityNumber = function(value) {	var flags = {		format: [			"###-##-####",			"### ## ####",			"#########"		]	};	return dojo.validate.isNumberFormat(value, flags);}// Validates U.S. zip-codedojo.validate.us.isZipCode = function(value) {	var flags = {		format: [			"#####-####",			"##### ####",			"#########",			"#####"		]	};	return dojo.validate.isNumberFormat(value, flags);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -