我誤會或是AngularJS'$timeout當涉及到jQuery鏈(在這種情況下,jsTree)功能越野車? 將引發異常 $.(...).jstree(...).on is not a function
這是我的代碼片段: $timout(function() {
$("#foo").jstree().on('select_node:jstree', onSelect)
});
我的代碼生成的HTML以及與HTML啓動jstree: var html = buildHtmlunorderedList()
$("#tree").html(html);
$("#tree").jstree({
"core":{"multiple":false},
"state":{"key":"vmsTree22"},
"plugins":["state"