JS刷新当前页面的8种方法
摘要:js刷新当前页面是在网页制作中也许会遇到的一个功能,我们这里列举出八种js刷新当前页面的 方法,供大家参考: 1 history.go(0) 2 location.reload() 3 location=location 4 location.assign(location) 5 d
js刷新当前页面是在网页制作中也许会遇到的一个功能,我们这里列举出八种js刷新当前页面的方法,供大家参考:
1 history.go(0) 2 location.reload() 3 location=location 4 location.assign(location) 5 document.execCommand('Refresh') 6 window.navigate(location) 7 location.replace(location) 8 document.URL=location.href刷新当前页面这八种js已经很足够了。