摘要:
关于AMD有两个非常重要的概念,那就是用于模块定义的define方法和用于处理依赖加载的require方法。 define函数定义:define( [module-name?] /*可选*/, (模块标示) 如果没有这个属性,则成为匿名函数 [array-of-dependencies?] /*可选 阅读全文
摘要:
恢复内容开始 默认校验规则(1) required:true 必输字段(2) remote:"check.php" 使用ajax方法调用check.php验证输入值(3) email:true 必须输入正确格式的电子邮件(4) url:true 必须输入正确格式的网址(5) date:true 必须 阅读全文