alexscheelmeyer / node-phantom

bridge to PhantomJS from Node.js
317 stars 117 forks source link

I want import a method execute in page.evaluate #105

Open zhouseahe opened 10 years ago

zhouseahe commented 10 years ago

Service.chartHistogram = function (ph,page,callback ,filename,parser){ page.evaluate(function() { try{ var line1= $("#pageArgs").val(); var line = new Array(); line = parser(line1); parser is a function , when exec error : Can't find variable: parser