Uncaught TypeError: Cannot read property 'core' of undefined?

request ajax spanning tree structure with jstree and keep reporting an error.

how to solve this mistake?

$(".btn1").click(function() {
        $("-sharpjstree_demo_div").jstree({
            "plugins" : [ "checkbox","contextmenu","dnd","search","state","types","wholerow" ],
            "checkbox" : {
                "keep_selected_style" : false,
            },
            "core" : {
                  "data" : {
                    "url" : "<%=basePath%>admin/resources/resourceTree.jhtml",
                    "data" : function (node) {
                      return { "id" : node.id };
                    }
                  }
            }
            
        }) 
Mar.11,2021

have you solved it

Menu