array(2) { ["docs"]=> array(0) { } ["count"]=> int(0) } 111string(0) "" int(1) int(10) int(70) int(8640000) string(13) "likecs_art_db" array(1) { ["query"]=> array(1) { ["match_all"]=> object(stdClass)#28 (0) { } } } array(1) { ["createtime.keyword"]=> array(1) { ["order"]=> string(4) "desc" } } int(10) int(0) int(8640000) array(2) { ["docs"]=> array(0) { } ["count"]=> int(0) } 00024-layui 在一个页面,打开另一个页面,iframe版 - 爱码网

在我的客户页面,调整到 我的合同页面:

<div>请去【<a style="color:green" class="toPage" data-type="toPage" >合同管理—我的合同</a>】页面提交审核!</div>

js:

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) : '';
      });

打开另一页面(页签) 的关键代码:

top.layui.index.openTabsPage("order/myOrdersList.jsp", '我的合同');

相关文章: