随笔分类 -  node

摘要:后端代码: const http = require('http'); const url = require('url'); const querystring = require('querystring'); http.createServer(function (request, respo 阅读全文
posted @ 2024-09-24 15:01 God、夜 阅读(5) 评论(0) 推荐(0) 编辑
摘要:一、接收GET请求参数 在Node.js 中,处理GET请求时,参数通常会附加在URL的查询字符串中。你可以使用url模块或express框架来解析这些参数。 1、使用url模块 const http = require('http'); const url = require('url'); ht 阅读全文
posted @ 2024-09-24 10:29 God、夜 阅读(376) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示