【摘要】 00038-layui 打开新页面,并通过url带参数,在新页面获考必过小编为大家整理了关于00038-layui 打开新页面,并通过url带参数,在新页面获的信息,希望可以帮助到大家!
00038-layui 打开新页面,并通过url带参数,在新页面获取url的参数
标签:elfscriptsynerrtableabssearchblefunction
打开的页面为一个页签
top.layui.index.openTabsPage(‘business/businessUserShow.jsp#/self=1‘,‘个人信息‘)
businessUserShow.jsp:
<script>
layui.config({
base: ‘${ctxLayui}/layuiadmin/‘
}).extend({
index: ‘pb/index‘
}).use([‘index‘, ‘form‘,‘dict‘,‘laytpl‘,‘util‘,‘element‘], function(){
var $ = layui.$ ,form = layui.form;
var dict = layui.dict;
var laytpl = layui.laytpl;
var util = layui.util;
var router = layui.router();
var admin = layui.admin;
var formData = window.parent.formData;
var self = npl;
try{
self = router.search.self;
if(self==1){
// top.layui.index.openTabsPage(‘business/businessUserShow.jsp#/self=1‘,‘个人信息‘)
var curUser = layui.data(layui.setter.tableName)[layui.setter.userKey];
var rtn = admin.syncReq(ctx+‘/business/businessUser/queryById‘,{id:curUser.id})
if(rtn.code==0){
formData = rtn.data;
}
}
}catch (err){
self = npl;
}
关键代码:
var router = layui.router();
self = router.search.self;
00038-layui 打开新页面,并通过url带参数,在新页面获取url的参数
标签:elfscriptsynerrtableabssearchblefunction
以上就是00038-layui 打开新页面,并通过url带参数,在新页面获的内容,更多资讯请及时关注考必过网站,最新消息小编会第一时间发布,大家考试加油!