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