有个remote配置就是远程检查的,第一个参数url,第二个是发送这个input值的键名称。看API视乎是这样,remote没有详细说明。如果没用自己定义一个规则,用ajax同步请求服务器获取是否重复信息在return true/false
自己看validatebox的api:http://www.jeasyui.com/documentation/index.php
validType string,array Defines the field valid type, such as email, url, etc. Possible values are:
1) a valid type string, apply a single validate rule.
2) a valid type array, apply multiple validate rules. The multiple validate rules on a field are available since version 1.3.2.
3) a key/value pairs, the key is the validing type name, the value is an array consisting validating parameters.
Code example:
<input class="easyui-validatebox" data-options="required:true,validType:'url'">
<input class="easyui-validatebox" data-options="
required:true,
validType:['email','length[0,20]']
">
<input class="easyui-validatebox" data-options="
required:true,
validType:{
length:[10,30],
remote:['http://.../action.do','paramName']
}
">