JavaScript yog feem ntau neeg xiam nyob rau hauv browsers vim kev ruaj ntseg. Tab sis feem coob ntawm cov chaw hauv Is Taws Nem niaj hnub no tau tsim los siv kev sib tham sib peev ntawm java cov ntawv sau. Yog li ntawd, nws tiav niam txiv tsim nyog los cuam tshuam hauv txoj cai tswj hwm kev ruaj ntseg nkag hauv cov chaw browser kom thiaj li tau txais kev nkag mus rau tag nrho kev ua haujlwm ntawm cov chaw. Kuv yuav ua li cas pab kom JavaScript rau scripting nyob rau hauv ntau hom browsers?
Cov Lus Qhia
Kauj ruam 1
Hauv Mozilla FireFox browser, qhib kev txhawb nqa JavaScript yuav tsum pib los ntawm xaiv cov "Cuab Yeej" hauv lub tshuab raj sab saum toj, thiab tom qab ntawd cov khoom "Cov chaw". Raws li qhov tshwm sim, "Cov Chaw" lub qhov rai yuav qhib, qhov uas peb xav tau "Cov ntsiab lus" tab. Nws yuav tsum tau kuaj nyob rau hauv pem hauv ntej ntawm inscription "Siv JavaScript". Cov lus qhia ntxaws ntxiv rau kev ua tiav ntawm cov ntawv sau yog nyob ntawm no - nkag mus rau lawv tau muab los ntawm lub pob sau npe "Advanced".
Kauj ruam 2
Hauv Opera, txoj kev luv tshaj plaws rau kev qhib JavaScript-teeb tsa yog los ntawm qhov browser "Main Menu". Yog tias koj hover tus nas cursor dhau qhov "Cov chaw ceev", tom qab ntawd ntawm nws cov sub-khoom yuav muaj cov khoom peb xav tau nrog lub npe "Pab kom JavaScript". Nws yuav tsum tau nyem kom tau txais qhov txiaj ntsig uas xav tau.
Kauj ruam 3
Qhov browser tseem muaj txoj kev nyob ntev me ntsis rau qhov qub chaw, tab sis nws muab kev nkag mus rau qee qhov chaw ntxiv rau kev siv JavaScript sau. Hauv tib seem "Chaw" ntawm "Main menu", xaiv cov khoom "General settings …". Koj tuaj yeem hla cov ntawv qhia zaub mov, tsuas yog nias Ctrl + F12 ua ke nrog cov ntsiab lus tseem ceeb. Raws li qhov tshwm sim, "Chaw" chaw qhib yuav qhib, qhov chaw koj yuav tsum mus rau "Advanced" tab thiab xaiv cov "Cov Ntsiab Lus" nyob rau hauv nws nyob hauv kem sab laug, thiab tom qab ntawd khij lub npov nyob ib sab ntawm "Enable JavaScript" inscription Cov. Lub pob rau kev nkag mus rau cov qib siab JavaScript ua tiav tom ntej yog "Tsim JavaScript …".
Kauj ruam 4
Thiab hauv Internet Explorer browser, los pab txhawb kev sau ntawv, hauv cov ntawv qhia saum toj kawg nkaus, hauv seem "Kev pabcuam", xaiv "Internet Options". Nyob rau hauv lub qhov rai uas qhib tom qab lub qhov rai no, peb xav tau lub "Ruaj Ntseg" tab, qhov uas peb yuav tsum nyem lub pob "Lwm yam". Lwm lub qhov rai yuav qhib - "Kev ruaj ntseg chaw". Hauv nws, koj yuav tsum kos cov npe tsis dhau ntau tshaj li ib nrab ntawm qhov nqes kom tau mus rau ntu "Ntawv". Hauv seem "Active Scripting" hauv seem ntawm ntu no, cov khoom "Enable" yuav tsum kuaj xyuas.