js 原生代码跳转页面,返回上一级页面

跳转到某个页面:

 window.location.href = './index.html';
window.navigate("b.html");
self.location='b.html';
top.location='b.html';

返回上一页面:

window.history.go(-1);
window.history.back();

猜你喜欢

转载自blog.csdn.net/chb19991118/article/details/120542234
今日推荐