js中在多级页面中如何做到只刷新当前页面,而不跳到首页去

如题所述

<input type=button value=刷新 onclick="window.location.reload()">
<input type=button value=前进 onclick="window.history.go(1)">
<input type=button value=后退 onclick="window.history.go(-1)">
<input type=button value=前进 onclick="window.history.forward()">
<input type=button value=后退 onclick="window.history.back()"> 后退+刷新<input type=button value=后退 onclick="window.history.go(-1);window.location.reload()">
温馨提示:答案为网友推荐,仅供参考
第1个回答  2016-07-15
用框架iframe,或用ajax,局部刷新
相似回答