小编use*_*048的帖子

如何忽略phantomjs中的错误

我有一个网络爬虫,我使用phantomjs来解析页面,我想得到html,但我总是在html代码输出之前得到这种类型的错误

ReferenceError: Can't find variable: collapse_content_selector

  http://staticloads.com/js/toggle.js?v=2013.10.04:135
TypeError: 'undefined' is not a function (evaluating '$('[placeholder]').placeholderLabel()')
Run Code Online (Sandbox Code Playgroud)

我怎么能阻止它

javascript phantomjs

24
推荐指数
1
解决办法
2万
查看次数

标签 统计

javascript ×1

phantomjs ×1