I have a code with the following DOM Tree:
4条回答 温柔的废话 (楼主) 2020-12-13 01:22 The Vannila Javascript Solution Array.prototype.map.call(document.querySelectorAll(".myselectorAreaofLinks"), function (e) { return e.getAttribute('href'); }); 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
The Vannila Javascript Solution
Array.prototype.map.call(document.querySelectorAll(".myselectorAreaofLinks"), function (e) { return e.getAttribute('href'); });