[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fOzu3j0GjFRUmIspNTGx0rYDvOO3mEeAjYPmXRFFB9PA":3},{"id":4,"source":5,"question":6,"options":7,"answer":8,"related":9,"type":16,"origin":71,"createTime":18},390552818,"v1","在 Gin 中,POST 请求无法使用模板渲染 c.HTML()",[],[],[10,19,25,31,37,43,49,55,61,67],{"id":11,"source":5,"question":12,"options":13,"answer":14,"related":15,"type":16,"origin":17,"createTime":18},390552809,"在 Gin 中,r.GET(\"\u002Fuser\", UserHandler) 只能处理 GET 类型的请求",[],[],[],3,null,"2026-05-28T14:23:13+08:00",{"id":20,"source":5,"question":21,"options":22,"answer":23,"related":24,"type":16,"origin":17,"createTime":18},390552810,"表单提交一般使用 POST 请求,不建议用 GET 提交敏感数据",[],[],[],{"id":26,"source":5,"question":27,"options":28,"answer":29,"related":30,"type":16,"origin":17,"createTime":18},390552811,"r.POST(\"\u002Flogin\") 可以通过浏览器地址栏直接访问并正常执行",[],[],[],{"id":32,"source":5,"question":33,"options":34,"answer":35,"related":36,"type":16,"origin":17,"createTime":18},390552812,"GET 请求可以通过 c.Query(\"key\") 获取 URL 问号后面的参数",[],[],[],{"id":38,"source":5,"question":39,"options":40,"answer":41,"related":42,"type":16,"origin":17,"createTime":18},390552813,"POST 表单数据只能用 c.Param() 获取,不能用 c.PostForm()",[],[],[],{"id":44,"source":5,"question":45,"options":46,"answer":47,"related":48,"type":16,"origin":17,"createTime":18},390552814,"在 Gin 里,GET 和 POST 可以绑定同一个 URL 路径",[],[],[],{"id":50,"source":5,"question":51,"options":52,"answer":53,"related":54,"type":16,"origin":17,"createTime":18},390552815,"c.Param(\"id\") 用于获取 \u002Fuser\u002F:id 这种路径里的参数,GET\u002FPOST 都能用",[],[],[],{"id":56,"source":5,"question":57,"options":58,"answer":59,"related":60,"type":16,"origin":17,"createTime":18},390552816,"浏览器刷新页面、地址栏访问、a 标签默认跳转都是 GET 请求",[],[],[],{"id":62,"source":5,"question":63,"options":64,"answer":65,"related":66,"type":16,"origin":17,"createTime":18},390552817,"form 表单如果不写 method,默认就是 POST 请求",[],[],[],{"id":4,"source":5,"question":6,"options":68,"answer":69,"related":70,"type":16,"origin":17,"createTime":18},[],[],[],{"courseName":72,"courseImg":73,"workName":74,"workId":74,"count":75,"courseId":76},"默认课程","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F03a579384a6dc297c89809b582fcc767.png","",0,"53e1d2ef4961cca8eea3e23969ad2cb9"]