getString (str) { let str1 = str.split('&') let strArr = [] str1.forEach(element => { let str2 = element.split('=') let a = { [str2[0]]: str2[1] } strArr.push(a) }); console.log(str1) },