根据value,找出value所在对象
const data = [{ label: '北京', value: '110000', children: [{ label: '北京市', value: '110100', children: [{ label: '东城区', value: '110101' }, { label: '西城区', value: '110102' }] }] }]
https://www.npmjs.com/package/tree-tool
2.1m questions
2.1m answers
60 comments
57.0k users