Cov txheej txheem:

Dab tsi yog jquery Ajax txoj kev?
Dab tsi yog jquery Ajax txoj kev?

Video: Dab tsi yog jquery Ajax txoj kev?

Video: Dab tsi yog jquery Ajax txoj kev?
Video: 34.4 QLSP - Chức năng sửa và xóa danh mục 2024, Kaum ib hlis
Anonim

jQuery AJAX Methods

Txoj kev Kev piav qhia
$.param() Tsim ib tug serialized sawv cev ntawm ib tug array los yog khoom (tuaj yeem siv raws li URL query hlua rau AJAX thov)
$.post() Loads cov ntaub ntawv los ntawm ib tug server siv ib tug AJAX HTTP POST thov
ajaxComplete() Qhia a muaj nuj nqi khiav thaum lub AJAX thov ua tiav

Yooj yim yog li, dab tsi yog txoj hauv kev los ua Ajax thov jQuery?

jQuery | ajax() Method

  1. hom: Nws yog siv los qhia hom kev thov.
  2. url: Nws yog siv los qhia qhov URL xa qhov kev thov mus rau.
  3. username: Nws yog siv los qhia tus neeg siv lub npe siv rau hauv qhov kev thov nkag mus rau
  4. xhr: Nws yog siv los tsim cov khoom XMLHttpRequest.
  5. async: Nws tus nqi pib yog qhov tseeb.

Tsis tas li ntawd, puas yog Ajax suav nrog hauv jQuery? Hmoov zoo, jQuery muab Ajax txhawb kom paub daws teeb meem qhov sib txawv ntawm qhov browser. Nws muaj ob qho tag nrho-featured $. ajax ua () txoj kev, thiab txoj kev yooj yim yooj yim xws li $.

Tsis tas li ntawd, Ajax txoj kev yog dab tsi?

ajax ua () txoj kev tso cai rau koj xa asynchronous http thov kom xa lossis khaws cov ntaub ntawv los ntawm cov neeg rau zaub mov yam tsis tas yuav rov rub tag nrho nplooj ntawv. $. ajax ua () tuaj yeem siv los xa http GET, POST, PUT, DELETE thiab lwm yam.

Ajax muaj nuj nqi hauv jQuery yog dab tsi?

Txhais thiab siv. Cov ajax ua () txoj kev yog siv los ua ib qho AJAX (asynchronous HTTP) thov. Tag nrho jQuery AJAX txoj kev siv cov ajax ua () txoj kev . Qhov no txoj kev feem ntau yog siv rau kev thov uas lwm txoj kev siv tsis tau.

Pom zoo: