-
临摹微笑
window.location.reload(); 在JavaScript中<meta http-equiv="refresh" content="1">在HTML中(其中1= 1秒)。
-
GCT1015
这是使用javascript 重新加载页面的535种方法,非常酷:以下是前20个:location = locationlocation = location.hreflocation = window.locationlocation = self.locationlocation = window.location.hreflocation = self.location.hreflocation = location['href']location = window['location']location = window['location'].hreflocation = window['location']['href']location = window.location['href']location = self['location']location = self['location'].hreflocation = self['location']['href']location = self.location['href']location.assign(location)location.replace(location)window.location.assign(location)window.location.replace(location)self.location.assign(location)最后10个:self['location']['replace'](self.location['href'])location.reload()location['reload']()window.location.reload()window['location'].reload()window.location['reload']()window['location']['reload']()self.location.reload()self['location'].reload()self.location['reload']()self['location']['reload']()
-
HUX布斯
window.location.reload()应该可以工作,但是有许多不同的选择,例如:window.location.href=window.location.href