我有一些这样的代码,
<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
。
https://stackoverflow.com/questions/846954
复制相似问题