1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-25 02:27:10 +08:00

get 和 post 的区别补充

This commit is contained in:
SnailClimb 2018-09-16 16:10:32 +08:00 committed by GitHub
parent 8982879625
commit 4529ad99ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,6 +78,10 @@ Servlet接口定义了5个方法其中**前三个方法与Servlet生命周期
补充GET方式提交表单的典型应用是搜索引擎。GET方式就是被设计为查询用的。
还有另外一种回答。推荐大家看一下:
- https://www.zhihu.com/question/28586791
- https://mp.weixin.qq.com/s?__biz=MzI3NzIzMzg3Mw==&mid=100000054&idx=1&sn=71f6c214f3833d9ca20b9f7dcd9d33e4#rd
## 什么情况下调用doGet()和doPost()
Form标签里的method的属性为get时调用doGet()为post时调用doPost()。