1. 首页
  2. 考试认证
  3. 其它
  4. dom cursor stream DOMCursor对象作为可读流

dom cursor stream DOMCursor对象作为可读流

上传者: 2024-10-10 04:10:52上传 ZIP文件 2.94KB 热度 2次
dom-cursor-stream dom-cursor-stream是一个将对象包装在可读流中的模块。安装$ npm install dom-cursor-stream用法var readable = require ( 'dom-cursor-stream' ) var through = require ( 'through2' ) var cursor = navigator . mozContacts . getAll ( ) readable ( cursor ) . on ( 'error' , console . error . bind ( console ) ) . pipe ( through . obj ( function ( contact , enc , next ) { console . log ( 'contact:' , c
用户评论