window.open在当前窗口打开

发表于 2019-01-10   |   分类于 js

默认在新窗口打开

window.open("http://blog.zbusa.com");

加上_self会在当前窗口打开

window.open("http://blog.zbusa.com","_self");
© 2019 Powered by Typecho & Theme Quark