用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
希望大家能告知下是什么问题~
5 回答2.2k 阅读
3 回答2.6k 阅读
3 回答2.3k 阅读
2 回答1.2k 阅读✓ 已解决
2 回答1.2k 阅读✓ 已解决
2 回答989 阅读✓ 已解决
4 回答1.2k 阅读