From 4529ad99caa31081a7143530ae6a31ab58ed7004 Mon Sep 17 00:00:00 2001 From: SnailClimb Date: Sun, 16 Sep 2018 16:10:32 +0800 Subject: [PATCH] =?UTF-8?q?get=20=E5=92=8C=20post=20=20=E7=9A=84=E5=8C=BA?= =?UTF-8?q?=E5=88=AB=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Java相关/J2EE基础知识.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Java相关/J2EE基础知识.md b/Java相关/J2EE基础知识.md index da4a7e32..665a441a 100644 --- a/Java相关/J2EE基础知识.md +++ b/Java相关/J2EE基础知识.md @@ -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()。