📅  最后修改于: 2022-03-11 14:57:57.608000             🧑  作者: Mango
var search = location.search.substring(1);
JSON.parse('{"' + search.replace(/&/g, '","').replace(/=/g,'":"') + '"}', function(key, value) { return key===""?value:decodeURIComponent(value) })