// 页面传值
subStr(url) {
var obj = {};
var str = url.split('?')[1];
var str2 = str.split('&');
console.log(str2);
for (var k in str2) {
var str3 = str2[k].split('=');
obj[str3[0]] = str3[1];
}
return obj;
},
var aa = subStr(window.location.href)
console.log(aa)