getParam : function(){ return (key, strURL = window.location.search) => new RegExp("(^|\\?|&)" + key + "=([^&]*)(\\s|&|$)", "i").test(strURL) ? decodeURIComponent(RegExp.$2.replace(/\+/g, " ")) : ""; },
本文共 269 字,大约阅读时间需要 1 分钟。
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