无法使jsTree节点展开折叠。我一定遗漏了一些非常简单的东西。
这就是脚本
<script type="text/javascript" src="<%= Url.Content("~/Scripts/jquery.jstree.js") %>"></script>
<script type="text/javascript">
$(document).ready(function () {
Refresh();
});
function Refresh() {
$('#technologyTree').jstree({
"json_data": {
"ajax": {
"url": "/TechnologyVersions/TechnologiesTreeAjax",
"type": "GET",
"dataType": "json"
}
},
"plugins": ["themes", "json_data", "ui"],
"themes": {
"theme": "default",
"dots": true,
"icons": true,
"url": " <%= Url.Content("~/Content/jsTree/themes/default/style.css") %> "
}
});
}
</script>我可以看到树被正确填充,并且来自控制器的json结果似乎是正确的。但是,当我单击这些展开/折叠箭头时,什么也不会发生。
发布于 2011-08-08 16:27:14
问题是与jQuery验证插件冲突。升级到最新版本的jQuery验证插件可以解决此问题。
https://stackoverflow.com/questions/6978791
复制相似问题