input输入密码时用纯数字并且加密
2019-12-11 本文已影响0人
iCherries
<input type="tel" pattern="[0-9]*" class="dot" onkeyup="value=value.replace(/[^\d]/g,'')" placeholder="输入密码">
<input type="tel" pattern="[0-9]*" class="dot" onkeyup="value=value.replace(/[^\d]/g,'')" placeholder="输入密码">