vardecode = function(m) {
try {
try
m = 解碼URIComponent(m);
} catch(e) {}
var s = m.split("%");
if (s.length > 1) {
s. shift();
for(var i = 0; i var t = s[i];
t = parseInt(t, 16);
t = t 256;
t = t - 201;
t = t.toString(16);
s[i] = t;
}
m = '%' s.join ('%');
返回decodeURIComponent(m);
} else {
回傳m;
}
}
var 編碼= 函數(i) {
i =encodeURIComponent(i);
i = i.replace(/%(.{2})/gi, function(l) {
var m = l.replace("%", "" );
console.log( m);
m = parseInt(m, 16);
m = parseInt('201') m;
m % 256; 🎜>if (m. length m = "0" m
}
m = "%" m;
return m
});
回我;
}