时间 2016-01-23 13:01:14 CrocoDillon’s Blog 原文 http://crocodillon.com/blog/reading-query-string-values-in-javascript 主题 JavaScript Most server software can read values from the query string easily, but sometimes you need to read these values in the b…
convert URL Query String to Object All In One URL / query string / paramas query string to object let str = "name=xgqfrms&sex=男&age=18&"; const params = new URLSearchParams(str); for (let p of params) { console.log(p); } ["name&…