./index.html?page=1
获取上面链接的参数
function getValue(page) {
let url = window.location.search.substring(1);
let cut = url.split('=');
console.log(url)
console.log(cut)
if (cut[0] == page) {
return cut[1];
}
return false
}
getValue(page)