您的位置:首页 > 产品设计 > UI/UE

layui 树形菜单自动刷新

2017-09-12 00:00 393 查看
http://fly.layui.com/jie/14570/





修改源码位置: 找到 js/tab.js找到如图对应的位置, 将false 修改为true , 在对应位置加上

_config.elem.find('div.layui-tab-content > div').eq(tabIndex).children('iframe')[0].contentWindow.location = data.href;

/* 对应源码位置

} else {
element.tabChange(ELEM.tabFilter, that.getTabId(data.title));
//自动刷新
if (_config.autoRefresh) {
//2017年9月12日15:59:36 新增加上的
_config.elem.find('div.layui-tab-content > div').eq(tabIndex).children('iframe')[0].contentWindow.location = data.href;
_config.elem.find('div.layui-tab-content > div').eq(tabIndex).children('iframe')[0].contentWindow.location.reload();
}
}

*/

http://fly.layui.com/jie/7991/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息