如何删除[].map(). a.href可能包含相同的href链接,我怎样才能阻止这种重复出现的数据?示例:www.example.com | www.example.com
const hrefs = await page.evaluate(() => {
const anchors = document.querySelectorAll('a');
return [].map.call(anchors, a => a.href);
});
慕码人2483693
相关分类