0
試圖傳遞一個id回控制器(順便說一句,id不爲空) 控制器認爲它得到空。jquery ajax發送數據 - ASP.Net MVC
var url = '@Url.Action("Delete")';
$.ajax({
url: url,
async: false,
data: {id:clientId},// have also tried data:clientId and data:[clientId]
type: 'POST',
});
控制器
public ActionResult Delete(string id)
{
...
}
非常感謝你 – 2014-09-20 13:20:53