用cheerio做数据抓取,但是遇到里包裹的时间时,怎么都无法用text()从里面获取文本信息,不知道是为什么,是不是有什么其他方法~~
$('#news li i')[0]
<i>2015-04-03</i>
$('#news li i')[0].text()
VM22358:2 Uncaught TypeError: undefined is not a function
希望大家能告知下是什么问题~
用cheerio做数据抓取,但是遇到里包裹的时间时,怎么都无法用text()从里面获取文本信息,不知道是为什么,是不是有什么其他方法~~
$('#news li i')[0]
<i>2015-04-03</i>
$('#news li i')[0].text()
VM22358:2 Uncaught TypeError: undefined is not a function
希望大家能告知下是什么问题~