Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【前端成长之路】GET和POST的区别 #17

Open
AmamiyaCx opened this issue Sep 5, 2022 · 0 comments
Open

【前端成长之路】GET和POST的区别 #17

AmamiyaCx opened this issue Sep 5, 2022 · 0 comments

Comments

@AmamiyaCx
Copy link
Owner

GET

  • 参数通过URL传递
  • 参数大小有限制,而且只能进行url编码
  • 参数暴露在URL中,所以不安全,不适合传递敏感信息
  • 参数会被完整的保存在浏览器的历史记录中
  • 会被浏览器主动缓存

POST

  • 参数放在请求体中传递
  • 参数大小没有限制,且支持多种编码格式
  • 参数不会被浏览器保留
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant