Dab tsi yog qhov zoo ntawm AngularJS tshaj JavaScript?
Dab tsi yog qhov zoo ntawm AngularJS tshaj JavaScript?

Video: Dab tsi yog qhov zoo ntawm AngularJS tshaj JavaScript?

Video: Dab tsi yog qhov zoo ntawm AngularJS tshaj JavaScript?
Video: Nyuj sib nrau nyob thông nông(1) 2024, Hlis ntuj nqeg
Anonim

Cov qhov zoo ntawm cov tshiab no JavaScript cov tsev qiv ntawv zoo li AngularJs , Aurelia, Ember, thiab Meteor yog tias nws muab ntau "civilized" thiab cov txheej txheem ntawm lub tsev tiav JavaScript daim ntawv thov.;-) jQuery muaj qee qhov qauv, tab sis txhua tus JavaScript lub tsev qiv ntawv muaj uas tsim rau hauv nws los ntawm xwm.

Ib yam li ntawd, nws tau nug, vim li cas peb siv AngularJS tsis yog JavaScript?

AngularJS los nrog cov nram qab no zoo dua Plain JavaScript : a) Magical Two-Way data binding: Cov ntaub ntawv ob txoj kev khi yog tej zaum qhov txias tshaj plaws thiab muaj txiaj ntsig zoo tshaj plaws hauv AngularJS . Nyob rau hauv ib txoj kev yooj yim, cov ntaub ntawv khi yog tsis siv neeg synchronization ntawm cov ntaub ntawv ntawm koj saib (HTML) thiab qauv ( JavaScript sib txawv).

Kuj Paub, qhov twg zoo dua JavaScript lossis AngularJS? AngularJS yog siv sij hawm ntau dua ua ib yam li piv rau JavaScript . JavaScript muab peb cov lus tawm tswv yim tam sim thaum khiav daim ntawv thov ntawm qhov browser. AngularJS tsis muaj qhov no feature. javascript yog cov txheej txheem txhim kho lub vev xaib muaj zog tshaj plaws siv los tsim cov ntawv thov web.

Ib yam li ntawd, qhov zoo ntawm AngularJS yog dab tsi?

Qhov zoo ntawm AngularJS Nws muab cov ntaub ntawv khi muaj peev xwm rau HTML. Yog li, nws muab cov neeg siv kev nplua nuj thiab teb cov kev paub. AngularJS code yog unit testable. AngularJS siv kev txhaj tshuaj tiv thaiv thiab siv kev sib cais ntawm kev txhawj xeeb.

Dab tsi yog qhov txawv ntawm JavaScript thiab Angular JS?

JavaScript yog tus neeg siv-sab scripting lus nrog rau server-sab scripting lus rau kev tsim web applications. AngularJS yog lub moj khaum sau rau hauv JS tsim ib nplooj ntawv thov. JavaScript yog ib hom lus siv los tswj cov ntaub ntawv tus qauv. Angular JS daim ntawv thov ua feem ntau qeeb.

Pom zoo: