Yuav Ua Li Cas Los Tsim Java Tsab Ntawv

Cov txheej txheem:

Yuav Ua Li Cas Los Tsim Java Tsab Ntawv
Yuav Ua Li Cas Los Tsim Java Tsab Ntawv

Video: Yuav Ua Li Cas Los Tsim Java Tsab Ntawv

Video: Yuav Ua Li Cas Los Tsim Java Tsab Ntawv
Video: Yasmi - Hlub Los Ntev (Official Music Video) 2024, Hlis ntuj nqeg
Anonim

Java Script yog hom lus sau ua haujlwm uas ua tiav los ntawm qhov browser thaum tso tawm cov ntsiab lus ntawm lub vev xaib. JS daim ntawv yog cov ntawv sau zoo tib yam uas tuaj yeem tsim thiab kho nrog siv cov qauv txheej txheem.

Yuav ua li cas los tsim java tsab ntawv
Yuav ua li cas los tsim java tsab ntawv

Kev tsim cov ntaub ntawv

Muaj ob peb txoj hauv kev los tsim cov ntaub ntawv JS. Qhov program code nyob rau hauv ntaub ntawv thiab tsis tas yuav ua ntxiv los ntawm compiler program. Txhawm rau tsim ib daim ntawv uas yuav nyeem hauv qhov system ua cov ntawv sau, nias sab xis rau thaj chaw pub dawb hauv Windows Explorer lossis ntawm lub desktop. Hauv cov ntawv qhia zaub mov uas tshwm sim, xaiv "Tshiab" - "Ntawv Xov Xwm" xaiv. Tom ntej no, koj yuav raug hais kom teeb tsa lub npe rau yav tom ntej cov ntawv thiab nws txuas ntxiv. Yog tias koj xav kom daim ntawv txuas mus rau qhov tseeb HTML nplooj ntawv, nws raug nquahu kom muab cov npe ntawv uas siv cov tsiaj ntawv Latin. Tom qab paub lub npe, txav tus cursor mus rau sab xis yav dhau los tus taw tes tam sim ntawd tom qab lub npe. Hloov lub Windows qhia kev txuas ntxiv ".txt" rau ".js" thiab nias Enter. Paub meej tias lub lag luam thiab kev hloov kho ntawm txuas ntxiv. JS daim ntawv tsim tiav.

Hloov

Txoj nyem rau ntawm cov ntaub ntawv tsim tshiab. Hauv cov ntawv qhia zaub mov uas tshwm sim, xaiv "Qhib nrog" kev xaiv. Hauv daim ntawv teev cov kab lus txwv, xaiv qhov kev zov me nyuam los ntawm qhov nws yuav yooj yim rau koj los nkag rau txoj cai code. Piv txwv li, koj tuaj yeem xaiv daim qauv ntawm Notepad lossis Wordpad. Yog tias koj muaj lwm cov neeg kho uas muaj peev xwm qhib JS cov ntaub ntawv, lawv kuj tseem yuav tshwm sim hauv cov npe. Thaum qhib, koj tuaj yeem pib nkag mus hauv tus lej.

Thaum koj tau sau tsab ntawv tag, txuag cov kev hloov pauv ntawm cov ntawv uas siv cov ntawv "File" - "Txuag" hais kom ua.

Koj tseem tuaj yeem tsim JS cov ntaub ntawv siv nrog Notepad. Txhawm rau ua qhov no, qhib qhov kev zov me nyuam los ntawm mus rau "Pib" - "Txhua Qhov Kev Pab Cuam" - "Txuj" - "Notepad". Tom qab ntawd pib nkag mus rau qhov program code. Tom qab ua tiav cov tswv yim, nyem rau ntawm "Txuag Raws Li" khawm thiab xaiv lub nplaub tshev uas koj xav kom txuag koj Java cov ntawv tom ntej. Muab cov ntawv sau npe thiab ntxiv rau ncua ".js" tom qab nws. Yog li, koj yuav qhia tag nrho cov kev txwv tsim nyog los txheeb xyuas Java Script cov ntaub ntawv hauv qhov system.

Yog li, Java ntawv cov ntaub ntawv tuaj yeem raug tua ob leeg ntawm nws tus kheej thiab ntawm qhov browser nruab los ntawm nws thau ntawm nplooj ntawv HTML ntawm lub xaib.

Tom qab tsim daim ntawv, koj tuaj yeem khiav nws ob qho tib si hauv Windows thiab qhov browser nruab rau koj lub khoos phis tawm siv "Qhib nrog" ntawv qhia zaub mov. JS cov ntaub ntawv tuaj yeem suav nrog HTML siv cov lus qhia tshwj xeeb. Hauv qhov no, kev cai yuav tsum tau hais meej nyob rau hauv seem ntawm HTML ntawv.

Pom zoo: