Layui如何在弹出的页面层关闭之后刷新父级页面 谁借莪1个温暖的怀抱¢ 2022-04-11 04:14 1300阅读 0赞 见代码 layer.open({ type : 2, area : [ w + 'px', h + 'px' ], fix : false, // 不固定 maxmin : true, shadeClose : true, anim: 1, shade : 0.4, title : title, content : url, cancel: function(index, layero){ //点击关闭事件 table.reload('searchReload', { url:'<%=request.getContextPath()%>/user/list/view' ,method: 'GET' ,page : { curr : $(".layui-laypage-skip").find("input").val() //当前页码 } }); } }); 这样就能在你修改完数据之后,关闭修改框,会自动刷新当前数据。 如您在阅读中发现不足,欢迎留言!!!
还没有评论,来说两句吧...