就是一个页面分享出去,上面有返回按钮,如果是分享页面的这个人,点击返回就是正常上一页,别人点开他分享的这个页,点击返回不是没有上一页吗,我们希望它跳到别的url,应该怎么处理?
if(history.length==0){
}
goBack: function(){
document.referrer === '' ?
window.location.href = 'http://m2.paipai.com/index.shtml' :
window.history.go(-1);
}
document.referrer