热门标签
更多>
搜索结果
查询Tags标签: 类型接口,共有 2条记录-
通过node.js写一个get类型接口
先建立数据和代码存放的地址 如下: 参考代码如下: // server.js const http = require(http); const filePath = path.join(__dirname, db, data.json) const app = http.createServer((req, res) => {if (req.url === /getList && req.method=== GET) {fs.rea…
2021/9/13 22:37:09 人评论 次浏览 -
通过node.js写一个get类型接口
先建立数据和代码存放的地址 如下: 参考代码如下: // server.js const http = require(http); const filePath = path.join(__dirname, db, data.json) const app = http.createServer((req, res) => {if (req.url === /getList && req.method=== GET) {fs.rea…
2021/9/13 22:37:09 人评论 次浏览