// const transferObj = { // value: aggregations.all_zg.buckets[i].key, // label: aggregations.all_zg.buckets[i].key, // count: aggregations.all_zg.buckets[i].doc_count, // }; 这样对象用结构赋值怎么写
我是这样改得
const transferObj ({value,label,count} = { value: aggregations.all_zg.buckets[i].key, label: aggregations.all_zg.buckets[i].key, count: aggregations.all_zg.buckets[i].doc_count, })
但是不对,应该怎么写
米琪卡哇伊
相关分类