跳轉:location.href = "a.html?id=" + Id + "";
再另一個頁面獲取:var url = location.search; //獲取url中"?"符後的字串 ?vm_id=2
var id;
if(url.indexOf("?") != -1) {
str = url.substr(1);
strs = str.split("=");
id = strs[1];
}