📅  最后修改于: 2022-03-11 15:04:29.148000             🧑  作者: Mango
const cheerio = require('cheerio');
const $ = cheerio.load('Hello world
');
$('h2.title').text('Hello there!');
$('h2').addClass('welcome');
$.html();
//=> Hello there!