vendredi 3 juillet 2015

TrifleJS quitting; "Unexpected ."

Can somebody tell me what is wrong with my syntax? While running this code in trifle JS it tells me that . is unexpected at (2,4). Thanks!

                var page = require('webpage').create(),
            page.open("http://ift.tt/hfU2hx", function(status) {
                if ( status === "success" ) {
                    page.includeJs("http://ift.tt/K7373y", function() {
                        console.log(page.evaluate(function() {
                            return $("#intro").text();
                        }));
                        phantom.exit();
                    });
                }
            });

Aucun commentaire:

Enregistrer un commentaire