跳转: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];
}