We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c470a5 commit 916fb1aCopy full SHA for 916fb1a
1 file changed
uploadFiles/原生下载/download.js
@@ -0,0 +1,6 @@
1
+const http = require('http');
2
+const fs = require('fs');
3
+const req = http.get('http://fs.w.kugou.com/201903291031/8de6755d3130fef2cdf40a83801bca07/G123/M01/13/1D/uw0DAFqox3OAWe0UAD_HxYp_Ivc469.mp3', (res) => {
4
+ const writeStream = fs.createWriteStream('演员.mp3');
5
+ res.pipe(writeStream);
6
+})
0 commit comments