window.location.reload(); //刷新当前页面
window.location = "../index.html"; //页面跳转
window.history.go(-1); //返回上一页
window.history.go(返回第几页,也可以使用访问过的URL);
var arr = location.href.split('/'); //js获取当前文件名,切割成数组
var fileName = a[a.length - 1]; //index.html
window.location.reload(); //刷新当前页面
window.location = "../index.html"; //页面跳转
window.history.go(-1); //返回上一页
window.history.go(返回第几页,也可以使用访问过的URL);
var arr = location.href.split('/'); //js获取当前文件名,切割成数组
var fileName = a[a.length - 1]; //index.html
890

被折叠的 条评论
为什么被折叠?