10
09/2014
html5 input pattern
<form onsubmit="alert('可以提交了');return false;"> <input class="text" pattern="^.+@.+\..+$" required /> <input type="submit" value="提交" style="font-size:16px;"/> </form>
<form onsubmit="alert('可以提交了');return false;"> <input class="text" pattern="^.+@.+\..+$" required /> <input type="submit" value="提交" style="font-size:16px;"/> </form>