form.on无法监听submit事件

提问 未结 18 283
人生如梦321
悬赏:20飞吻
版本:layui 浏览器:google
<form class="layui-form"><div class="layui-form-item"><label class="layui-form-label">单元名称:</label><div class="layui-input-block"><input type="text" name="" placeholder="单行输入" autocomplete="off" class="layui-input"></div></div><div class="layui-form-item"><label class="layui-form-label">单元属性:</label><div class="layui-input-block"><select name="unitAttr" lay-filter="unitAttr"><option value="0">0</option><option value="1">1</option><option value="2">2</option></select><div class="layui-unselect layui-form-select"><div class="layui-select-title"><input type="text" placeholder="请选择" value="0" readonly="" class="layui-input layui-unselect"><i class="layui-edge"></i></div><dl class="layui-anim layui-anim-upbit"><dd lay-value="0" class="layui-this">0</dd><dd lay-value="1" class="">1</dd><dd lay-value="2" class="">2</dd></dl></div></div></div><div class="layui-form-item"><label class="layui-form-label">关联cctv:</label><div class="layui-input-block"><select name="associateCctv" lay-filter="associateCctv"><option value="0">0</option><option value="1">1</option><option value="2">2</option></select><div class="layui-unselect layui-form-select"><div class="layui-select-title"><input type="text" placeholder="请选择" value="0" readonly="" class="layui-input layui-unselect"><i class="layui-edge"></i></div><dl class="layui-anim layui-anim-upbit"><dd lay-value="0" class="layui-this">0</dd><dd lay-value="1" class="">1</dd><dd lay-value="2" class="">2</dd></dl></div></div></div><div class="layui-form-item"><label class="layui-form-label">单元规则:</label><div class="layui-input-block"><input type="text" placeholder="单行输入" autocomplete="off" class="layui-input"><input type="text" style="margin-top: 5px;" placeholder="单行输入" autocomplete="off" class="layui-input"><input type="text" style="margin-top: 5px;" placeholder="单行输入" autocomplete="off" class="layui-input"></div></div><div class="layui-form-item"><button lay-submit="" lay-filter="saveUnit" class="linedThin linedThin_click" style="position: absolute;right: 5px;bottom: 5px;">保存</button></div></form>
回帖