Saib Li Cas Tom Qab Tau Thov

Cov txheej txheem:

Saib Li Cas Tom Qab Tau Thov
Saib Li Cas Tom Qab Tau Thov

Video: Saib Li Cas Tom Qab Tau Thov

Video: Saib Li Cas Tom Qab Tau Thov
Video: Saib kab tes uas tau thov tuaj 2024, Kaum ib hlis
Anonim

Kev thov xa tom qab yog hom kev sib tham ntawm cov neeg thov kev pabcuam thiab tus neeg rau zaub mov. Lawv tau tsim los hloov thiab ntxiv cov ntaub ntawv rau ib qho chaw nyob deb. Yog li, cov kev thov no muaj lub thawv tshwj xeeb rau cov ntaub ntawv sib kis, hu ua lub cev thov. Lub cev ntawm cov ntaub ntawv thov thiab nws lub headers kis tau yam tsis muaj tseeb rau cov neeg siv tshawb xyuas lub xaib siv qhov browser.

Saib li cas tom qab tau thov
Saib li cas tom qab tau thov

Nws yog qhov tsim nyog

Khoos phis tawj nrog nkag siv internet, browser thiab txuas txuas ntxiv

Cov Lus Qhia

Kauj ruam 1

Cov browser niaj hnub muaj cov cuab yeej rau cov web tsim tawm kom tau txais qee cov ntaub ntawv hais txog kev thov tom qab xa. Yog tias koj yuav tsum tau saib ntawm lub hauv paus ntawm tsuas yog ob peb thov, siv lawv yuav yooj yim dua thiab nrawm dua lwm txoj hauv kev.

Kauj ruam 2

Yog tias koj siv Firefox, koj tuaj yeem siv nws lub web console. Nws qhia txog qhov kev thov headers thiab cov ntsiab lus ntawm cov ncuav qab zib kis. Txhawm rau tso nws, qhib cov ntawv qhia qhib browser, nyem rau ntawm "Web Development" khoom thiab xaiv "Web Console". Hauv lub vaj huam sib luag uas tshwm, qhib lub "Network" khawm. Sau lub npe ntawm txoj kev hauv kev lim teb - ncej. Nyob ntawm koj cov hom phiaj, nyem rau lub pob ntawm daim foos xa cov lus thov xav tau lossis rov ua nplooj ntawv. Lub console qhia txog qhov kev thov. Nyem rau nws nrog nas kom pom cov ntsiab lus ntxiv.

Kauj ruam 3

Google Chrome browser muaj cov cuab yeej debugging zoo heev. Txhawm rau siv lawv, nyem rau ntawm lub cim nrog cov duab ntawm cov ciaj ntswj, thiab tom qab ntawd qhib cov khoom "Kho thiab tswj Google Chrome." Xaiv "Cuab Yeej" thiab pib "Tsim Cov Cuab Yeej". Hauv qhov toolbar, xaiv Network Network thiab xa koj qhov kev thov. Pom qhov thov xav tau hauv cov npe thiab nyem rau nws txhawm rau kawm cov ntsiab lus.

Kauj ruam 4

Lub Opera browser muaj cov twj tsim tawm rau cov Opera Dragonfly. Txhawm rau tso lawv, nyem rau ntawm nplooj ntawv uas xav tau thiab xaiv cov "Tshawb Xyuas Element" cov ntsiab lus hauv cov ntawv qhia zaub mov. Mus rau Developer Tools Network tab thiab xa koj cov lus thov. Nrhiav nws hauv cov npe thiab nthuav nws kom tshuaj xyuas lub headers server thiab cov lus teb.

Kauj ruam 5

Internet Explorer 9 muaj cov khoom siv hu ua F12 Tus Tsim Tawm Cuab Yeej uas muab cov ncauj lus kom ntxaws txog cov kev thov ua tiav. Lawv tau pib los ntawm nias lub khawm F12 lossis siv cov ntawv "Service" uas muaj cov khoom ntawm tib lub npe. Txhawm rau saib qhov kev thov, mus rau "Network" tab. Nrhiav cov lus nug muab rau hauv cov ntawv xaus thiab nyem ob zaug los nthuav cov ntsiab lus.

Kauj Ruam 6

Lub Chrome thiab Internet Explorer 9 browsers muaj cov cuab yeej tsim muaj uas tso cai rau koj los tshuaj xyuas cov ntawv xa tom qab thov tag nrho. Kom paub meej tag nrho siv lawv lossis Firefox nrog lub Firebug plugin tau nruab. Nws yog qhov yooj yim heev rau kev tshuaj xyuas cov lus nug uas tsis tshua pom, piv txwv li, thaum debugging cov chaw.

Kauj Ruam 7

Yog tias koj xav pom qhov kev thov xa los ntawm qhov kev zov me nyuam dhau ntawm qhov browser, siv Fiddler HTTP debugger. Nws ua haujlwm raws li tus neeg saib xyuas npe thiab cuam tshuam kev thov los ntawm ib qho kev pab cuam twg, thiab tseem muab cov ncauj lus kom ntxaws heev ntawm lawv cov headers thiab cov ntsiab lus.

Pom zoo: