Layui 实现tab页添加/修改保存后,关闭当前tab页并刷新理论父页面表格

/* 关闭tab页,刷新表格页面*/function successTabCallback() {var topWindow = $(window.parent.document);var layId = $('.pagetabs', topWindow).find('.layui-this').attr('lay-id');// console.log("layId==" + layId)var $contentWindow = $('.layadmin-iframe[data-id="' + layI

/* 关闭tab页,刷新表格页面*/
function successTabCallback() {
var topWindow = $(window.parent.document);
var layId = $('.pagetabs', topWindow).find('.layui-this').attr('lay-id');
// console.log("layId==>" + layId)
var $contentWindow = $('.layadmin-iframe[data-id="' + layId + '"]', topWindow)[0].contentWindow;
$contentWindow.search();
}
 

本文标题为:Layui 实现tab页添加/修改保存后,关闭当前tab页并刷新理论父页面表格

基础教程推荐