在个人客户页面,调整到 个人合同页面:jsp
<div>请去【<a style="color:green" class="toPage" data-type="toPage" >合同管理—个人合同</a>】页面提交审核!</div>
js:ide
var active = { toPage:function () { top.layui.index.openTabsPage("order/myOrdersList.jsp", '个人合同'); } } $("body").on('click','.toPage', function(){ var type = $(this).data('type'); active[type] ? active[type].call(this) : ''; });
打开另外一页面(页签) 的关键代码:ui
top.layui.index.openTabsPage("order/myOrdersList.jsp", '个人合同');