cheerio, dom操作模块

cheerio

为服务器特别定制的,快速、灵活、实施的jQuery核心实现.

Introduction

将HTML告诉你的服务器

var cheerio = require('cheerio'),
$ = cheerio.load('

Hello world

');

$('h2.title').text('Hello there!');
$('h2').addClass('welcome');

$.html();

原文地址:https://www.cnblogs.com/mayidudu/p/5820233.html