ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
##表单数据校验 > 提供密码字段重复输入和远程唯一性验证 * * * * * ~~~javascript return { //... "rules": { "pass": [//密码字段 { "validator": "validatePass", "trigger": "blur" } ], "checkPass": [//重复字段 { "validator": "validatePass2", "trigger": "blur" } ], "onlyOne":[//唯一性 { "validator": "validateAsync", "trigger": "blur","url":"/data/only.php" } ] } //,... } ~~~