咏竹莉
where there is a will,there is a way

 

1. get传参方式是通过url传递,是可以直接看到的,post传参参数URL不可见,get把请求的数据在URL后通过?连接,通过&进行参数分隔。post将参数存放在http包体内

2. get通过url传递,传递的数据长度是URL大小的限制,URL最大长度是2048个字符,post没长度限制。

3. get后退不会有影响,post后退会重新进行提交

4. get请求可以被缓存,post不可以被缓存

5. post比 get 更安全,因为参数不会被保存在浏览器历史或web日志中

 

posted on 2021-03-09 14:07  咏竹莉  阅读(108)  评论(0)    收藏  举报