cheerio, dom操作模块

cheerio

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

Introduction

将HTML告诉你的服务器

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

Hello world

');

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

$.html();

posted @ 2016-08-29 23:51  蚂蚁都督  阅读(646)  评论(0编辑  收藏  举报