var cheerio = require("cheerio");
var html=" <div > <div id='content' class='msg' >xxxx </div> </div>";
var $ = cheerio.load(html,{decodeEntities: false});
console.log($('#content').html());
这样能取出xxxx 我要连 div id=’content’ 全部都取出来怎么写?
var cheerio = require("cheerio");
var html=" <div > <div id='content' class='msg' >xxxx </div> </div>";
var $ = cheerio.load(html,{decodeEntities: false});
console.log($('#content').html());
这样能取出xxxx 我要连 div id=’content’ 全部都取出来怎么写?