更新时间:2023-11-03 10:21:28
使用page.injectJs('jquery-1.6.1.min.js');它会正常工作.
Use page.injectJs('jquery-1.6.1.min.js'); it will work fine.
here is a beautiful link for using jquery in phantomjs http://snippets.aktagon.com/snippets/534-how-to-scrape-web-pages-with-phantomjs-and-jquery