1 analysis(url) { 2 var arr = url.split(‘?‘); 3 var brr = arr[1].split(‘&‘); 4 var obj = {}; 5 for (var i = 0; i < brr.length; i++) { 6 var crr = brr[i].split(‘=‘); 7 obj[crr[0]] = crr[1]; 8 } 9 return obj; 10 }
2023-12-15 15:39:09
1 analysis(url) { 2 var arr = url.split(‘?‘); 3 var brr = arr[1].split(‘&‘); 4 var obj = {}; 5 for (var i = 0; i < brr.length; i++) { 6 var crr = brr[i].split(‘=‘); 7 obj[crr[0]] = crr[1]; 8 } 9 return obj; 10 }