JavaScript 打开页面三种方式

JavaScript About 138 words

在当前页面打开

window.location.href="https://www.zhangbj.com"; 

在新窗口打开

window.open("https://www.zhangbj.com");  

返回上一个页面

window.history.back(-1)
Views: 2,845 · Posted: 2019-06-15

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓


Today On History
Browsing Refresh