急急急!!!,请问一下大家,node中怎么读取网络流?
var path =“http://121.40.85.175/monitor/sh.ykf.1.1/20160407/01.mp3”; var stream = fs.createReadStream(path); var dhh = fs.createWriteStream(‘E:/aaa/u.mp3’); stream.pipe(dhh, {end: false}); stream.on(“end”, function() { console.log(‘9999999999appended’); });
这个fs模块指向的是localhost 所以我想读取网络文件应该怎么弄?