node-text-content-stream:将流通过管道传输到 HTML 元素中,用最新的块覆盖 textContent

时间:2021-06-18 13:55:41
【文件属性】:
文件名称:node-text-content-stream:将流通过管道传输到 HTML 元素中,用最新的块覆盖 textContent
文件大小:6KB
文件格式:ZIP
更新时间:2021-06-18 13:55:41
JavaScript 文本内容流 通过管道将流传输到 HTML 元素中,用最新的块覆盖 textContent。 每次写入时都会请求一个新的动画帧,以免阻塞浏览器。 用法 : var stream = require ( 'stream' ) ; var dataStream = new stream . Readable ( ) ; dataStream . _read = function ( ) { this . push ( '' + Math . random ( ) ) ; } var document = require ( 'global/document' ) ; var textContentStream = require ( 'text-content-stream' ) ; var elm = document . createElement ( 'span' ) ; do
【文件预览】:
node-text-content-stream-master
----.travis.yml(461B)
----.eslintrc(164B)
----index.js(594B)
----test.js(659B)
----package.json(1KB)
----LICENSE(728B)
----example.js(408B)
----.npmignore(3B)
----.zuul.yml(358B)
----.gitignore(253B)
----README.md(2KB)
----.editorconfig(202B)

网友评论