jquery $.post() vs $.get()

前端 未结 5 1076
[愿得一人]
[愿得一人] 2021-02-04 14:47

I need to retrieve a simple page and use the data that it returns. Is there any difference between $.post() and $.get() should I be using one over the

5条回答
  •  隐瞒了意图╮
    2021-02-04 15:29

    Here is a nice article explaining the differences between an HTTP POST and an HTTP GET. I myself prefer to use $.ajax(); and tweak it accordingly.

提交回复
热议问题