发布于 8个月前

layui的laydate如何绑定多个input输入框

<div class="layui-form-item">
        <label class="layui-form-label">输入框</label>
        <div class="layui-input-block">
          <input id="shuru" type="text" name="username" lay-verify="title" autocomplete="off" placeholder="请输入标题" class="layui-input">
        </div>
      </div>
      <div class="layui-form-item">
        <label class="layui-form-label">输入框2</label>
        <div class="layui-input-block">
          <input id="shuru2"  type="text" name="username" lay-verify="title" autocomplete="off" placeholder="请输入标题" class="layui-input">
        </div>
</div>
lay('.layui-input').each(function() {
    laydate.render({
        elem: this
     });
});
©2020 edoou.com   京ICP备16001874号-3