window.location.replace和href的区别 发布于: 2018-11-07 更新于: 2018-11-07 分类于: Html 阅读次数: 分享到 微博 分享到 Twitter 分享到 Facebook 分享到 Google+ 分享到 LinkedIn 分享到 QQ 分享到 Telegram Html 解释1234window.location.href='a.html';是属于跳转,window.location.replace('a.html');是属于重定向。微信里面两种方式现象是:href的会有返回按钮,replace的无返回按钮。 *************感谢您的阅读************* vconsole的使用 log4j输出到文件