1、点击返回上一张页面:
<a class="icon-back" href="javascript:history.go(-1)"></a>
2、点击跳转到指定页面:
$('.btn').click(function(){
window.location.href='http://192.168.10.129:8020/helpCenter/html/qa.html';
})
3、页面一加载就跳转:
window.location.href='http://192.168.10.129:8020/helpCenter/html/qa.html';
window.self.location='http://192.168.10.129:8020/helpCenter/html/qa.html';
window.top.location='http://192.168.10.129:8020/helpCenter/html/qa.html';
4、点击跳转到拼接地址:
$('.btn').click(function(){
window.location.href = 'http:'+'//www.baidu.'+'com';
})
5、点击跳转到上一级目录下的某个页面
window.location.href = "../childTwo/registerConfirm.html";