官网的说明Tree methods方法名说明参数getCheckedNodes获取被勾选的节点无getSelectedNodes获取被选中的节点无自己撸的代码----------------------------------<button @click='getCheckedNodes'>获取被选中的节点</button><button @click="getSelectedNodes">获取被勾选的节点</button>自己撸的代码---------------------------getCheckedNodes(){ console.log(this.$refs.Tree.getCheckedNodes());},getSelectedNodes(){ console.log(this.$refs.tree.getSelectedNodes);}报错App.vue?2573:105 Uncaught TypeError: Cannot read property 'getCheckedNodes' of undefinedat VueComponent.getCheckedNodes (eval at <anonymous> (app.js:967), <anonymous>:92:40)at boundFn (eval at <anonymous> (app.js:723), <anonymous>:125:14)at HTMLButtonElement.invoker (eval at <anonymous> (app.js:723), <anonymous>:1659:18)
添加回答
举报
0/150
提交
取消