Home > Web Front-end > JS Tutorial > body text

window.location.reload()方法刷新页面弹出要再次显示该网页对话框_javascript技巧

WBOY
Release: 2016-05-16 17:35:30
Original
2160 people have browsed it

用window.location.reload()方法刷新页面时,有时浏览期会出现一个这样的弹出框,
解决办法是:
一: document.location.href = "${base}/rwfp/rwfpcontent" 用这种方法找到页面对应的Action的位置,这样做虽然页面刷新,但是刷新后数据会从第一页开始显示,并不是停留在原来的页面.
二: $("#yhsubmit").click() 这种方法跟分页相关,#yhsubmit为

复制代码 代码如下:



这种方式刷新后页面会停留在原来的位置.
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!