关闭HTML5只能提示(form上新增novalidate)
<form novalidate>
<input type="text" required />
<input type="submit" value="No validate submit" />
</form>
例子:
http://jsfiddle.net/RvBaF/
<form novalidate>
<input type="text" required />
<input type="submit" value="No validate submit" />
</form>
例子:
http://jsfiddle.net/RvBaF/