摘要:
console.log(screen.availWidth,screen.availHeight);//获取屏幕的宽和高(除 Windows 任务栏之外))console.log(screen.width,screen.height);//获取屏幕的宽和高(包含Windows 任务篮))consol 阅读全文
摘要:
history.back();//后退一个历史记录相当于 history.go(-1); history.forward();//前进一个历史记录相当于 history.go(1); 阅读全文
摘要:
location.href ='url' //有历史记录 location.replace=‘url’ //没有历史记录 location.reload() //缓存刷新 ocation.reload(true) 强制刷新 阅读全文