Expressjs nruab nrab yog dab tsi?
Expressjs nruab nrab yog dab tsi?

Video: Expressjs nruab nrab yog dab tsi?

Video: Expressjs nruab nrab yog dab tsi?
Video: ExpressJS Быстрый Курс 2024, Kaum ib hlis
Anonim

Qhia. js yog lub moj khaum ceev thiab lub teeb hnyav siv feem ntau rau kev txhim kho web application thiab Node. js Cov neeg tsim khoom thoob plaws ntiaj teb tau hlub nrog lub moj khaum no. Qhia. js muab tag nrho cov yam ntxwv ntawm daim ntawv thov web yam tsis muaj kev cuam tshuam ntawm Node.

Kuj paub, Expressjs yog dab tsi?

Express tuav cov khoom xws li ncuav qab zib, txheeb xyuas lub cev thov, tsim cov lus teb thiab tuav txoj hauv kev. Nws kuj yog ib feem ntawm daim ntawv thov uas mloog lub qhov (socket) los daws cov lus thov tuaj.

Tsis tas li ntawd, kev nthuav qhia ua haujlwm li cas? Nws yog lub vev xaib lub vev xaib uas cia koj tsim lub vev xaib thov los daws ntau qhov sib txawv http thov ntawm ib qho tshwj xeeb url. Qhia yog qhov tsawg, qhib qhov chaw thiab hloov tau yooj yim Node. js web app moj khaum tsim los tsim cov vev xaib, web apps, & API yooj yim dua.

Raws li, qhov txawv ntawm Nodejs thiab Expressjs yog dab tsi?

Qhia. js yog Node me me. js lub moj khaum ntawm lub vev xaib thov.

Qhia. js Vs Node. js.

Feature Express.js Node.js
Lub tsev thaiv Nws yog tsim los ntawm Node.js Nws yog tsim los ntawm Google lub cav V8
Kev xav tau Node yog xav tau rau Express. Express tsis xav tau rau Node.
Sau rau hauv JavaScript C, C++, JavaScript

Node JS nruab nrab yog dab tsi?

Node . js yog qhov qhib-qhov chaw, hla-platform JavaScript run-time ib puag ncig rau kev ua JavaScript code server-sab. Nws enables JavaScript siv rau server-sab scripting, thiab sau scripts server-sab los tsim cov nplooj ntawv web dynamic ua ntej nplooj ntawv xa mus rau tus neeg siv lub web browser.

Pom zoo: