你想点击第一个不做一些事件做正则判断 let reg = /^0-[0-99999]+$/; let isTrue = reg.test(e.node.pos); 点击第一个不展示数据,点击第二层展示数据