1. 程式人生 > >js如何獲取window.location.href跳轉後查詢字符串的值?

js如何獲取window.location.href跳轉後查詢字符串的值?

fun click ear func ren htm 獲取 earch cli

$("#worked_count").parent().attr("onClick","window.location.href=‘view/warn/task_list.html?task_status=D‘");

$(document).ready(function () {
console.dir(window.location.search);
//打印?task_status=E
});



js如何獲取window.location.href跳轉後查詢字符串的值?