Yuav Ua Li Cas Khiav Cov Ntawv

Cov txheej txheem:

Yuav Ua Li Cas Khiav Cov Ntawv
Yuav Ua Li Cas Khiav Cov Ntawv

Video: Yuav Ua Li Cas Khiav Cov Ntawv

Video: Yuav Ua Li Cas Khiav Cov Ntawv
Video: Keeb kwm - Hmoob los nyob teb chaw nyab laj zoo li cas tiag 2024, Kaum ib hlis
Anonim

Niaj hnub no, nrhiav ib nplooj ntawv hauv Is Taws Nem uas tsis siv qee cov ntawv sau tsis yooj yim dua nyob hauv tsev kawm - cov tub ntxhais kawm tsis muaj xov tooj ntawm tes. Thiab tib yam li lub xov tooj ntawm tes tsis ua haujlwm yam tsis muaj cov cuab yeej tsim nyog, yog li cov ntawv sau web xav tau qee yam kev muaj zog los ua kom muaj zog. Yuav ua li cas raws nraim yog xav tau los sau tsab ntawv?

Yuav ua li cas khiav cov ntawv
Yuav ua li cas khiav cov ntawv

Cov Lus Qhia

Kauj ruam 1

Ua ntej tshaj plaws, peb txiav txim siab txog qhov chaw uas yuav sau cov ntawv.

Qhov kev tua ntawm cov ntawv uas muaj nyob hauv tsab ntawv yuav tsum ua los ntawm "txheej txheem hais lus" (lossis "tus neeg txhais lus") - ib qho kev pab cuam uas nyeem cov kab ntawm kab ntawv thiab ua cov yeeb yam. Xws li qhov kev zov me nyuam tuaj yeem ua ib feem ntawm server software, lossis ib feem ntawm browser browser, nyob ntawm hom lus uas koj xav kom ua tiav cov ntawv sau rau hauv. Cov ntawv sau PHP yog ua tiav ntawm tus neeg rau zaub mov; yog li ntawd, cov neeg siv lub web khiav tawm yuav tsum khiav lub ntawv. Cov ntawv sau JavaScript tau raug tua hauv qhov browser, yog li browser ntawm peb lub computer yog qhov txaus los khiav cov ntawv sau rau cov lus no.

Kauj ruam 2

Tam sim no ntau ntxiv txog cov ntawv sau sau los ntawm tus neeg rau zaub mov.

Koj kuj tseem tuaj yeem nruab tus web server hauv koj lub computer. Nws yuav tsis tas yuav tsum muaj kev sib txuas hauv Is Taws Nem - xws li tus neeg rau zaub mov hu ua "hauv zos". Qhov no ua tau yooj yim rau kev sau thiab debugging cov ntawv sau hauv cov lus sab server (sab php, perl, thiab lwm yam). Hauv net koj tuaj yeem nrhiav cov khoom faib tawm (cov khoom siv installation) ntawm ob qho tib si them nyiaj thiab pub dawb rau tus kheej siv - piv txwv li Zend, Denver, XAMPP, AppServ, thiab lwm yam. Tab sis yog tias nkag mus siv Is Taws Nem tsis yog teeb meem, tom qab ntawd koj tuaj yeem ua yam tsis muaj lub server hauv zos, thiab siv cov web server xa mus los ntawm qee tus neeg zov me nyuam. Feem ntau qhov kev pabcuam no tau them, tab sis tsis kim heev. Tab sis koj yuav tuaj yeem siv ntau cov qauv ntxiv, plugins, cov ntaub ntawv txheeb cais thiab lwm yam khoom muaj txiaj ntsig yam tsis muaj kev txhawj xeeb txog kev txhim kho thiab tswj lawv hauv kev ua haujlwm.

Kauj ruam 3

Thiab thaum kawg, hais txog cov ntawv sau tua hauv qhov browser.

Raws li rau tus neeg siv cov ntawv, peb tuaj yeem sau thiab khiav qhov yooj yim ntawm lawv tam sim no, tsis tas yuav khoom dab tsi, txhim kho lossis tua dab tsi. Peb ua qhov no: ua ntej ntawm tag nrho, peb qhib txhua phau ntawv nyeem, piv txwv li phau ntawv sau. Peb sau hauv nws tsuas yog 3 kab ntawm qhov chaws:

ceeb toom ("JavaScript tau khiav!")

Tam sim no peb khaws cov cai no rau hauv cov ntaub ntawv nrog qhov nthuav dav html (piv txwv li js-test.html) thiab khiav nws li ib txwm los ntawm ob-nias nws. Los ntawm html txuas ntxiv (HyperText Markup Language), lub operating system lees paub cov hom ntaub ntawv thiab tso tawm qhov program tsim los tso cov ntawv zoo li no - qhov no yog qhov browser. Thiab cov neeg txhais lus hauv qhov browser yuav nyeem thiab tua cov kab lus. Qhov tshwm sim yuav zoo li cov duab.

Pom zoo: