摘要:
const http = require('http'); const querystring = require('querystring'); const postData = querystring.stringify({ 'msg': 'Hello World! ----- 哈利路亚' }); const options = { hostname: '192.168.1.6'... 阅读全文
摘要:
const http = require('http'); http.get('http://192.168.1.6:8080/getDemo?msg=12', (res) => { const { statusCode } = res; const contentType = res.headers['content-type']; let error; if (statu... 阅读全文