【文件属性】:
文件名称:phantom-eval:使用 PhantomJS 评估 URL 上的代码
文件大小:6KB
文件格式:ZIP
更新时间:2021-06-25 09:19:59
JavaScript
幻像评估
使用 PhantomJS 评估 URL 上的代码
用法
var phantomEval = require ( 'phantom-eval' )
phantomEval ( 'http://localhost:8000' , function ( ) {
// Run this in webkit
return window . location . href
} , function ( err , results ) {
// Handle the results in node.js
console . log ( results )
} )
或者您想编写一个包含使用的所有 Ember 路由的 JSON 文件?
var phantomEval = require ( 'phantom-eval' )
var fs = require ( 'fs'
【文件预览】:
phantom-eval-master
----.travis.yml(58B)
----LICENSE-MIT(1KB)
----index.js(1KB)
----package.json(915B)
----test()
--------test.js(2KB)
--------index.html(592B)
----phantom.js(600B)
----examples()
--------discourse-routes.js(326B)
----.gitignore(13B)
----README.md(2KB)