📜  javascript 从网页字符串中提取链接 - Javascript 代码示例
📅  最后修改于: 2022-03-11 15:02:12.960000             🧑  作者: Mango
代码示例1
var rawHTML = 'barzort';
var doc = document.createElement("html");
doc.innerHTML = rawHTML;
var links = doc.getElementsByTagName("a")
var urls = [];
for (var i=0; i