phantomjs-使用外部的js文件
varwebpage=require('webpage');varpage=webpage.create();varurl="https://www.baidu.com/";page.open(url,function(s){if(s=="success"){page.includeJs("http://code.jquery.com/jquery-1.8.0.min.js",function(){page.evaluate(function(){$("#kw").val("css教程");$("#su").click();});});phantom.exit();};});
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。