我在右键单击树层次结构的任何文件夹时为菜单项“删除”定义了一个功能,以删除树的文件夹。但是单击它时,我收到以下错误消息“Store is null or not an object error in dojo”
谁能建议我如何更正此错误消息?我下面的函数有问题吗?
<ul dojoType="dijit.Menu" id="tree_menu" style="display: none;">
<li dojoType="dijit.MenuItem" data-dojo-props="disabled: false,
onClick: function (evt){
store.deleteById(selectedItemId);
resetEditor();
}",>Delete project</li></ul>
树形结构
- Main Project 1
Sub Project 1_1
Sub Project 1_2
* sub Project 1_3
+ Main Project 2 -
Main Project 3
Sub Project 3_1 -
Sub Project 3_2
Sub Project 3_2_1