62,046
社区成员
发帖
与我相关
我的任务
分享
//初始化页面
function intiPage() {
if ('<%=Request["actionId"] %>' != "") {
treeList('<%=Request["type"] %>');
showInfo('<%=Request["actionId"] %>', '<%=Request["type"] %>');
}
else {
treeList("dept");
}
} //end initPage
//a.js
//初始化页面
function intiPage(args) {
if (args.actionid != "") {
treeList(args.type);
showInfo(args.actionid, args.type);
}
else {
treeList("dept");
}
} //end initPage
index.aspx
<script src="a.js"></script>
<script>
var args = { 'actionid':'<%= Request["actionId"] %>','type':'<%= Request["actionId"] %>' }
intiPage(args) ;
</script>
function queryString(key) {
var querys = location.search;
if (!querys)
return null;
key = key.toLowerCase();
querys = querys.substring(1).split('&');
for (var i = 0, len = querys.length; i < len; ++i) {
var q = querys[i];
if (!q)
continue;
q = q.split('=');
if (q[0].toLowerCase() == key) {
q.shift();
return decodeURIComponent(q.join('='));
}
}
}