<input type="text" name="Number" lay-verify="required|integer" placeholder="请输入" value="" autocomplete="off" class="layui-input">
layui.use('form', function () { var $ = layui.$ , layer = layui.layer , form = layui.form form.verify({ integer: [ /^[1-9]d*$/ , '只能输入正整数' ] }); });