【文件属性】:
文件名称:phantom-bluebird:bluebird 承诺的核心幻影模块
文件大小:4KB
文件格式:ZIP
更新时间:2021-06-07 23:34:31
JavaScript
幻蓝鸟
承诺的核心幻影模块
用法
npm install phantom-bluebird --save
它不是节点模块。
该模块可以在phantomjs脚本中使用promise api代替phantomjs模块的非标准回调api。
网页模块
与phantomjs相同,但方法open是promisified。
require ( 'phantom-bluebird' ) ( ) ;
// replaces webpage and child_process with modules from this package.
// don't call this function if you don't want core modules replaced.
var webpage = require ( 'webpage' ) ;
// or var webpage = requir
【文件预览】:
phantom-bluebird-master
----lib()
--------webpage.js(644B)
--------child_process.js(1KB)
----LICENSE(1KB)
----README.md(2KB)
----.gitignore(526B)
----index.js(377B)
----package.json(583B)