const arr=[
{name:'a',id:'aa'},
{name:'b',id:'bb'}
];
arr.map((obj)=>{return "'"+obj.id+"'"}).join(","); // "'aa','bb'"
07-20
1万+
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-18
4197
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
03-17
2万+
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
05-17