1.datatype的类型
"":"不能为空!",
"6-16":"请填写6到16位任意字符!",
"n":"请填写数字!",
"n6-16":"请填写6到16位数字!",
"s":"不能输入特殊字符!",
"s6-18":"请填写6到18位字符!",
"p":"请填写邮政编码!",
"m":"请填写手机号码!",
"e":"邮箱地址格式不对!",
"url":"请填写网址!",
"idcard":"身份证格式不正确!"
2.Validform表单提交
<input style="margin-top:1em;" class="btn btn-primary radius" id="btn_sub" type="button" value="提交">
<script type="text/javascript">
$(function(){
$("#form").Validform({
btnSubmit:"#btn_sub",
tiptype:2,
beforeSubmit:function(){
<!-- 跳转后台的路径以及传的数据问题,相当于表单提交-->
return false;
}
});
});
</script>