javascript - Can the "Open in browser" in the WeChat menu also specify the URL to be opened?
PHPz
PHPz 2017-05-19 10:11:33
0
1
770
  1. The default is to open the URL of the current page. Is there any way to specify the URL to open?

PHPz
PHPz

学习是最好的投资!

reply all(1)
伊谢尔伦
var stateObj = { foo: "bar" };
window.history.pushState(stateObj, "page 2", "http://your.url/name.html");

After your page is loaded, use the above code to add a URL to the browsing history in setTimeOut that you want to open in the browser.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!