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

前端 未结 5 1082
[愿得一人]
[愿得一人] 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:30

    Go for $.get() as you don't need to post any data, or $.load() if you want to display the page in the browser (you want to refresh a part of the page).

提交回复
热议问题