第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請及時(shí)綁定郵箱和手機(jī)立即綁定

小小代碼-^_^

var stream = require('stream')

var util = require('util')




function ReadStream() {

stream.Readable.call(this)

}


util.inherits(ReadStream, stream.Readable)


ReadStream.prototype._read = function() {

this.push("I ")

this.push("Love ")

this.push("Imooc\n")

this.push(null)

}



function WritStream() {

stream.Writable.call(this)

this._cached = new Buffer('')

}


util.inherits(WritStream, stream.Writable)


WritStream.prototype._write = function(chunk, encode, cb) {

console.log(chunk.toString())

cb()

}



function TransformStream() {

stream.Transform.call(this)

}


util.inherits(TransformStream, stream.Transform)


TransformStream.prototype._transform = function(chunk, encode, cb) {

this.push(chunk)

cb()

}


TransformStream.prototype._flush = function(cb) {

this.push('Oh Yeah!')

cb()

}


var rs = new ReadStream()

var ws = new WritStream()

var ts = new TransformStream()

rs.pipe(ts).pipe(ws)


正在回答

1 回答

可以運(yùn)行

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
進(jìn)擊Node.js基礎(chǔ)(二)
  • 參與學(xué)習(xí)       76728    人
  • 解答問題       242    個(gè)

本教程帶你攻破 Nodejs,讓 JavaScript流暢運(yùn)行在服務(wù)器端

進(jìn)入課程
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)