Chrome独有的input标签中的required

在chrome浏览器中:

<input type="text" value="" required>

input标签中如有required属性,如果内容为空,事件会被锁定到这个控件上。

原文地址:https://www.cnblogs.com/fatfatdachao/p/3408049.html