摘要:
1.使用Map的形式 ES5 var queryString = Object.keys(params).map(function(key) { return key + '=' + params[key] }).join('&'); ES6 let queryString = Object.key 阅读全文
摘要:
function getRequestParams(){var params = {}; var href = location.href; var index = href.indexOf('?'); if(index !== -1){ href = href.substring(index + 阅读全文