var w=0
var h=0
window.onresize = function(){
var ww = document.documentElement.clientWidth
var hh = document.documentElement.clientHeight
if(ww!=w || hh!=h){
location.reload()
w=ww
h=hh
}
}
时间: 2024-10-01 06:10:55
var w=0
var h=0
window.onresize = function(){
var ww = document.documentElement.clientWidth
var hh = document.documentElement.clientHeight
if(ww!=w || hh!=h){
location.reload()
w=ww
h=hh
}
}