问题描述
我是Apex的新手,正在尝试了解APEX系统。当我尝试实现Tree View代码块时,出现有关“模态对话框错误”的错误;
$("#t_TreeNav").treeView("option","tooltip",{
content: function(cb,node,) {
return node.label;
}
} );
$("#t_TreeNav").tooltip("option","items",".a-TreeView-content");
错误:
desktop_all.min.js?v=20.1.0.00.13:2 Uncaught TypeError: $(...).treeView is not a function
at Object.javascriptFunction (favoriler?session=6128032290639&dialogCs=TEsgfXkqPJSXNJzM-Y0RWOoIxg6mukkH0ISPGeIBn1hbWuAR7fARYWRzUdku2Y9zuwFASfunIo-N3lktASDdZQ:331)
at Object.da.doAction (desktop_all.min.js?v=20.1.0.00.13:21)
at Object.da.doActions (desktop_all.min.js?v=20.1.0.00.13:21)
at HTMLDocument.<anonymous> (desktop_all.min.js?v=20.1.0.00.13:21)
at Function.each (desktop_all.min.js?v=20.1.0.00.13:2)
at S.fn.init.each (desktop_all.min.js?v=20.1.0.00.13:2)
at Object.da.actions (desktop_all.min.js?v=20.1.0.00.13:21)
at Object.<anonymous> (desktop_all.min.js?v=20.1.0.00.13:21)
at Function.each (desktop_all.min.js?v=20.1.0.00.13:2)
at S.fn.init.each (desktop_all.min.js?v=20.1.0.00.13:2)
解决方法
添加" $(document).ready(function() "
后,结果变成另一个未捕获的语句;
错误;
Uncaught TypeError: $(...).treeView is not a function
at HTMLDocument.<anonymous> (.....?
VM4586:1 Uncaught ReferenceError: customEvent is not defined
at close (<anonymous>:1:318)
添加if语句效果更好。
if (node.label != 'ID_MENU') {
return node.label; }