function search(object, value) {
for (var key in object) {
if (object[key].value == value) return [object[key].value];
if(object[key].children && Object.keys(object[key].children).length > 0){
var temp = search(object[key].children, value);
if (temp) return [object[key].value, temp].flat();
}
}
}
el-cascader级联选择框回显
最新推荐文章于 2024-07-21 19:19:15 发布