在ASP.NET MVC4中,通过拖拉生成树型菜单,在树型菜单项数量小于19或21项时,以下代码可以正确执行,当树型菜单项数量大于19或21项时,不去执行 url: "/Courseware/SummitCourseResources?id=" + *@ViewData["id"]*后台代码,请教一下,这是什么个情况?
var nodes = zTreeObj.transformToArray(zTreeObj.getNodes());
$.ajax({
url: "/Courseware/SummitCourseResources?id=" + *@ViewData["id"]*,
contentType: "application/json",
type: "post",
data: JSON.stringify(nodes),
dataType: "json",
async: true,
cache: false
});
var nodes = zTreeObj.transformToArray(zTreeObj.getNodes());
$.ajax({
url: "/Courseware/SummitCourseResources?id=" + *@ViewData["id"]*,
contentType: "application/json",
type: "post",
data: JSON.stringify(nodes),
dataType: "json",
async: true,
cache: false
});