使用jQuery可以相当容易地将此邮件作为字符串获取,如下所示:然而,当我想要在cheerio库中使用node.js (它应该像jquery一样工作let $ = cheerio.load(html) // launching cheerio with html code requested from w
我有一些链接的字符串,
Some text will come here <a class="checkSomething" href="https://something.com" style="colorSome text will come here <a href="#">Click</a> Some text will come here.从上面的字符串中提取类名为href的checkSomething