与jQuery的异步调用后,我怎么能返回particolar看法?
这是我的来电者的观点:
<script type="text/javascript">
function Run() {
$.ajax({
type: "POST",
cache: false,
url: "/Home/Run",
data: $("#form_run").serializeArray(),
dataType: "json"
});
}
</script>
<form action="javascript:return true;" method="post" id="form_run">
<input type="text" id="nome" name="nome" />
<input type="text" id="cognome" name="cognome" />
<input type="submit" name="submit" value="Run" onclick="Run();" />
</form>
这是我的控制器操作:
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Run(string nome, string cognome)
{
return View("Result");
}
不能显示视图“结果”怎么了?