2022年10月12日

摘要: get:用来搜索 post:用来添加或删除 rest 例子: 第二个是删除指定用户。@PathVariable 是路径变量,代表从路径里取值 @RequestBody 接请求体参数,接json,多个数据 @RequestParam 接路径,用来表单提交 @PathVariable 接单个数据 res 阅读全文
posted @ 2022-10-12 23:58 豆豆只会增删改查 阅读(45) 评论(0) 推荐(0)
 
摘要: js: const express=require('express'); const app=express(); app.set('view engine','ejs'); app.get('/',(req,res)=>{ res.render("h"); return; }) app.list 阅读全文
posted @ 2022-10-12 22:08 豆豆只会增删改查 阅读(167) 评论(0) 推荐(0)