我有一个 MVC 项目,我试图在控制器对象中调用一个方法,但该方法没有被调用,这是代码。
。网
Namespace WindowTreeView
Public Class DefaultController
Inherits System.Web.Mvc.Controller
'
' GET: /Default
Function Index() As ActionResult
Return View()
End Function
Function GetTreeNodes() As JsonResult
End Function
End Class
End Namespace
查询
$(document).ready(function () {
$("#divJsTreeDemo").tree({
data: {
method: "POST",
dataType: "json",
url: "Default/GetTreeNodes",
async: true,
contentType: "application/json; charset=utf-8",
data : "{}"
}
});
});