編碼:編碼
var a = $("#hid_Dev").val(); window.location.href = 'AccountList.aspx?dev=' + encodeURIComponent(a);//編碼 //檢測跨地區登錄設備
解碼:code
var a = window.location.href.split('?')[1].replace("dev=", ""); var dev = decodeURIComponent(a);//解碼 layer.alert("跨區域登陸的設備:" + dev + "<br/>請聯繫一級BOSS獲取設備激活碼!");