如何刪除[].map(). a.href可能包含相同的href鏈接,我怎樣才能阻止這種重復出現的數據?示例:www.example.com | www.example.comconst hrefs = await page.evaluate(() => { const anchors = document.querySelectorAll('a'); return [].map.call(anchors, a => a.href);});
如何刪除map()中的重復項
慕絲7291255
2021-12-12 15:32:54