window.location.replace()与window.location.href()区别
摘要:
有3个页面 a,b,c 如果当前页面是c页面,并且c页面是这样跳转过来的:a->b->c 1:b->c 是通过window.location.replace("..xx/c") 此时b页面的url会被c页面代替,并且点击后退按钮时会回退到a页面(最开始的页面) 2:b->c是通过window.loc 阅读全文
posted @ 2018-04-08 13:58 Steven5007 阅读(158) 评论(0) 推荐(0) 编辑