HTML5里的input标签的required属性的提示
<input type="text" name="usr_name" required='required' oninvalid="setCustomValidity('warning')" oninput="setCustomValidity('')" />
<input type="text" name="usr_name" required='required' oninvalid="setCustomValidity('warning')" oninput="setCustomValidity('')" />