编码:
var a = $("#hid_Dev").val();
window.location.href = 'AccountList.aspx?dev=' + encodeURIComponent(a);//编码
//检测跨地区登陆设备
解码:
var a = window.location.href.split('?')[1].replace("dev=", "");
var dev = decodeURIComponent(a);//解码
layer.alert("跨区域登录的设备:" + dev + "<br/>请联系一级BOSS获取设备**码!");