var url = "http://www.taobao.com/index.php?key0=0&key1=1&key2=2.............";var obj = parseQueryString(url); function parseQueryString(argu){ var str = argu.split('?')[1]; var result = {}; var temp = str.split('&'); for(var i=0; i
结果:
本文共 313 字,大约阅读时间需要 1 分钟。
var url = "http://www.taobao.com/index.php?key0=0&key1=1&key2=2.............";var obj = parseQueryString(url); function parseQueryString(argu){ var str = argu.split('?')[1]; var result = {}; var temp = str.split('&'); for(var i=0; i
结果:
转载于:https://www.cnblogs.com/xiangru0921/p/6514123.html