JavaScript 当前URL取参返回字典时间:2023-03-09 04:13:47 getParam : function(){ return (key, strURL = window.location.search) => new RegExp("(^|\\?|&)" + key + "=([^&]*)(\\s|&|$)", "i").test(strURL) ? decodeURIComponent(RegExp.$2.replace(/\+/g, " ")) : "";},