$ document .ready function { $ is not defined 這個(gè)提示錯(cuò)誤為什么
<script> $(document).ready(function(){ $("#demoForm").validate( { rules:{ username:{ required:true, minlength:2, maxlength:10 }, password:{ required:true, minlength:2, maxlength:16 } }, messages:{ username:{ required:"用戶名必須填寫", minlength:"用戶名最小為2位", maxlength:"用戶名最大為10位" }, password:{ required:"必須填寫密碼", minlength:"密碼最小為2位", maxlength:"密碼最大為16位" } } }); }); </script>
2016-05-30
不然看下你引入jquery的標(biāo)簽有沒有寫錯(cuò)
2016-05-30
是不是沒有引入jquery