Skip to content

ajax 请求 get 和 post 的区别

区别

  • get 一般用于查询,post 一般用于提交
  • get 参数拼接在 url 上,post 放在请求体内
  • 安全性:post 易于防止 CSRF

基于 MIT 许可发布