6
更改URL并使用jQuery重定向
我有一些这样的代码, <form id="abc"> <input type="text" id="txt" /> </form> 现在我想这样重定向 var temp = $("#txt").val(); url = "http://example.com/" + temp; window.location.replace(url); // or window.location(url); jQuery中有解决此问题的方法吗?它仍然让我拥有url = http://example.com。
132
javascript
jquery
url
redirect