cheerioReq(link, (err, $) => {
let $tags = $('[class^="tag"] li');
console.log('TAGS FROM CHERIO REQ -> ' , $tags.text());
return [$tags.text()]
});
此代码记录CSSWeb DevelopmentFront End Development
。哪个是正确的,除了空格。它选择的三个标签是:'CSS','Web Development'和'Front End Development'。如何在它们之间使用空格或逗号返回这些标记?像这样:['CSS' , 'Web Development', 'Front End Development']