<input type="password" name="text" class="input" pattern="\d+" placeholder="Numbers only or shake">
登录后可以查看完整源码、在线编辑并实时预览运行效果。