getParam : function(){
return (key, strURL = window.location.search) => new RegExp("(^|\\?|&)" + key + "=([^&]*)(\\s|&|$)", "i").test(strURL) ?
decodeURIComponent(RegExp.$2.replace(/\+/g, " ")) : "";
},
转载于:https://www.cnblogs.com/luorende/p/10214826.html