js如何获取window.location.href跳转后查询字符串的值?

$("#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
});



原文地址:https://www.cnblogs.com/YuyuanNo1/p/9229800.html