84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
比如当前的网址输入框中显示的网址是:http://segmentfault.com/ask,我能通过js改成http://www.baidu.com吗?
学习是最好的投资!
javascript - How to change the URL in the URL input box through js? -PHP Chinese website Q&A-javascript - How to change the URL in the URL input box through js? -PHP Chinese website Q&A
Let’s take a look and learn.
实现不鸟的。如果这个也可以实现,那钓鱼网站就牛掰死了。
不行应该,如果不是更改hash的话更改URL会直接跳转到相应网址吧。
hash
HTML5是支持的,楼主可以去看看这两个方法:pushState/replaceState
javascript - How to change the URL in the URL input box through js? -PHP Chinese website Q&A-javascript - How to change the URL in the URL input box through js? -PHP Chinese website Q&A
Let’s take a look and learn.
实现不鸟的。如果这个也可以实现,那钓鱼网站就牛掰死了。
不行应该,如果不是更改
hash
的话更改URL会直接跳转到相应网址吧。HTML5是支持的,楼主可以去看看这两个方法:pushState/replaceState