html5,格式的验证

<form action="" method="get">
    <input type="text" name="kk" pattern="[0-9]{4}">
    <input type="submit">

posted @ 2016-10-06 17:49  侯伟东  阅读(737)  评论(0编辑  收藏  举报