JavaScript 當前URL取參返回字典

getParam : function(){    return (key, strURL = window.location.search) => new RegExp("(^|\\?|&)" + key + "=([^&]*)(\\s|&|$)", "i").test(strURL) ?        decodeURIComponent(RegExp.$2.replace(/\+/g, " ")) : "";},
相關文章
相關標籤/搜索