不想form表单验证,那就直接ajax验证吧。$('button').click(function() {var _val = $('#b').val() if (_val.length >70 && _val.length < 0 ) {alert("输入1-70字符")} })