📜  Cheerio 加载 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:29.148000             🧑  作者: Mango

代码示例1
const cheerio = require('cheerio');
const $ = cheerio.load('

Hello world

'); $('h2.title').text('Hello there!'); $('h2').addClass('welcome'); $.html(); //=>

Hello there!