优化 form 代码尾部细节

pull/1194/head
贤心 2 years ago
parent 9c8a632b46
commit d37a36778b

@ -916,15 +916,16 @@ layui.define(['lay', 'layer', 'util'], function(exports){
return layui.event.call(this, MOD_NAME, 'submit('+ layFilter +')', params);
};
// 自动完成渲染
var form = new Form()
,$dom = $(document), $win = $(window);
var form = new Form();
var $dom = $(document);
var $win = $(window);
// 初始自动完成渲染
$(function(){
form.render();
});
// 表单reset重置渲染
// 表单 reset 重置渲染
$dom.on('reset', ELEM, function(){
var filter = $(this).attr('lay-filter');
setTimeout(function(){

Loading…
Cancel
Save