/* 获取URL中的参数 */
owner.getUrlPars = function () {
var url = location.search;
if(url.indexOf('?') != -1) {
var theRequest = {};
var str = url.substr(1);
var strs = str.split('&');
for(var i = 0; i < strs.length; i ) {
theRequest[strs[i].split('=')[0]] = unescape(strs[i].split('=')[1]);
}
return theRequest;
} else {
return '';
}
};
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.