jquery - 发出 AJAX 请求后如何切换视图?
问题描述
从视图发送 AJAX POST 请求后,我无法切换视图。
$("._button2").click(function() {
var $row = $(this).closest("tr"); // Find the row
var model = {
IDLicence: $row.find(".IDLicence").text(),
name: $row.find(".name").text(),
tel_number: $row.find(".name").text(),
seniority: $row.find(".seniority").text(),
eye_examination: $row.find(".eye_examination").text()
};
var url = "@Url.Action("Edit","Ctaxi")";
$.post(url, model)
});
这是我的行动:
[HttpPost]
public ActionResult Edit(Driver d)
{
return View("Edit");
}
解决方案
推荐阅读
- html - Xpath 等于 OR 包含文本
- php - 用于创建新事件 URL 的 Outlook 日历链接不再有效?
- php - 我试图从带有 PHRETS 的 RETS 中查看照片
- python-3.x - 根据主机 ID 是否存在于列表中设置值
- r - 部署 R Shiny 应用程序时如何正确存储 ShapeFiles
- eclipse-plugin - Eclipse RCP中调用IResource的操作导致线程等待
- python - 为什么我的代码将 Matplotlib 中的图形向右移动了许多单位?
- java - Apache Poi Excel(.xlsx) 文件已损坏。(使用 XSSF)
- ruby-on-rails - 为员工安排假期任务
- qt - 在 QML 中,有没有办法在 Item 上设置 anchor.bottom 而无需设置高度?