标签:java javascript cti for c line
function
request(paras)
{
var
url = location.href;
var
paraString = url.substring(url.indexOf(
"?"
)+1,url.length).split(
"&"
);
var
paraObj = {}
for
(i=0; j=paraString[i]; i++){
paraObj[j.substring(0,j.indexOf(
"="
)).toLowerCase()] = j.substring(j.indexOf(
"="
)+1,j.length);
}
var
returnValue = paraObj[paras.toLowerCase()];
if
(
typeof
(returnValue)==
"undefined"
){
return
""
;
}
else
{
return
returnValue;
}
}
调用这个 request就可以了,这里可以调用request(
"ID"
)
标签:java javascript cti for c line
原文地址:http://www.cnblogs.com/Xujg/p/3797160.html