js刷新当前页面
的有关信息介绍如下:F5重新刷新页面,相当于在数据库重新加载到数据到jsp页面,数据,当然是你在数据库查询出来的数据,你要刷新页面,用window.location.reload(); 这个就行了
那你就用location.href = '你当前的url?prarm=你保持的那个不变值'
跳转进来后截取url获取参数,赋值
javascript刷新页面的方式有如下几种
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
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
window.location.reload(true);强刷