




















代码
1 $("#btnGo").bind("click", function(e) {
2 e.preventDefault();
3 var url = "<%= Url.Action("Index", "Editor", new { pageno = "{0}" }) %>";
4 url = decodeURIComponent(url).replace("{0}", $("#txtGoto").val());
5 //alert(url);
6 window.location = url;
7 });
必须加
e.preventDefault();
这句在firefox以及Chrome才有效
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。