function changeURLPar(url, ref, value) {
function changeURLPar(url, ref, value) { if (url.indexOf('?') != -1)
str = url.substr(url.index 網址「?」 ref "= value;
var returnurl = "";
var setparam = "";
var arr indexOf(' &') != -1) {
arr = str.split('&');
for (i in arr) { ')[ 0] == ref) {
setparam = value;
}
else {
)[1 ];
}
} returnurl = returnurl.substr( 0, returnurl .length - 1);
if (modify == "0")
turnurl = returnurl "&" ref "=" value;
}
else {
if (str.indexOf('=') != -1) {
arr[0] == ref ) {
setparam = value;
🎜> else {
returnurl = arr[0] "= setparam;
if (modify == "0")
returnurl = returnurl "&" ref "=" value;
}
其他
returnurl = ref "= value;
}
return url.substr(0, url.indexOf('?')) "?" returnurl;
}