url= "/page/employee/employeeUpdate.html?id="+data.id

獲取 url攜帶的參數 ->
$.getUrlParam = function (name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r != null) {
return unescape(r[2]);
}
return null;
}
console.log($.getUrlParam("id"))

瀏覽器上打印的數據 ->
PS: url 需要的參數是 = 號 不是冒號哦 不然獲取不到的