摘要:
let http=require('http');http.get('xxxx',(res)=>{ //借口地址 let data=''; //定义data用来接收 res.on('data',(chunk)=>{ //必须要监测变化 data+=chunk; }) res.on('end',()= 阅读全文
摘要:
let http =require('http'); let url =require('url');let fs=require('fs');let server= http.createServer((req,res)=>{ let pathname=url.parse(req.url).pat 阅读全文