You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
304 B
Markdown
12 lines
304 B
Markdown
10 years ago
|
# PhantomJS
|
||
|
|
||
|
```javascript
|
||
10 years ago
|
var phantom = phantom || {exit: function () {}};
|
||
10 years ago
|
window._ = require('../../vendor/underscore/underscore');
|
||
10 years ago
|
phantom.injectJs('../../vendor/backbone/backbone.js');
|
||
|
console.log(_.toString());
|
||
|
console.log(Backbone.View.toString());
|
||
|
phantom.exit();
|
||
|
//module.exports = Backbone;
|
||
10 years ago
|
```
|