layui中使用JS新开Tab项

35 阅读1分钟

var topLayui = parent === self ? layui : top.layui;

topLayui.index.openTabsPage(url, text);