Cov txheej txheem yog cov tsim rau cov khoom siv hauv qhov chaw nquag. Yuav luag txhua tus widget raug tua nyob hauv Java Script cov lus, uas tuaj yeem yooj yim rau hauv nplooj HTML ntawm lub xaib siv cov cai kom raug. Txhawm rau ntxiv rau daim ntawv thov uas yuav tsum tau, nws yuav txaus kom sau npe cov kab uas xav tau hauv koj nplooj HTML.
Cov Lus Qhia
Kauj ruam 1
Nrhiav tus widget uas haum rau koj lub xaib hauv Is Taws Nem lossis rub tawm los ntawm ib qho peev txheej tau tsim tsim cov ntsiab lus zoo rau webmasters. Koj tuaj yeem siv qhov kev pab cuam sab nraud, tus lej rau uas yuav txaus kom nkag mus rau nplooj ntawv, lossis ib daim ntawv cais nrog.js txuas ntxiv, uas tuaj yeem rub tawm ntawm Is Taws Nem. Yuav tsum muab cov ntaub ntawv JS khaws cia rau hauv koj lub koos pij tawj nyob rau hauv cov npe ntawd lossis nyias muab nyias npe sib thooj rau koj cov nplooj HTML.
Kauj ruam 2
Qhib cov nplooj ntawv ntawm lub xaib uas koj xav tau ntxiv cov khoom siv siv kev siv ntawv nyeem koj siv. Koj kuj tseem tuaj yeem siv cov txheej txheem notepad txheem uas muaj los ntawm lub neej ntawd nyob rau hauv Windows. Txhawm rau nkag mus rau nws, nyem rau ntawm koj nplooj ntawv thiab xaiv "Qhib nrog" kev xaiv, thiab hauv cov npe uas tshwm, xaiv "Notepad".
Kauj ruam 3
Next mus rau seem yam ntawm cov code koj xav kom nkag mus rau tus widget. Tom qab ntawv, sau tus lej xaj li no:
Kauj ruam 4
Cov hom ntsuas tshwj xeeb tshaj tawm hom plug-in widget (Java Script), thiab seem seem tau qhia meej qhov chaw nyob ntawm qhov txuas ntxiv hauv Is Taws Nem. Yog tias koj siv ntaub ntawv rub tawm lossis kev cai JS, koj tuaj yeem qhia cov kab lossis qhov chaw sib thooj mus rau cov ntawv nrog.js txuas ntxiv rau hauv src parameter. Piv txwv li, yog hais tias daim ntawv widget.js nyob hauv lub nplaub tshev widget, uas yog nyob rau hauv cov npe tib yam li HTML daim ntawv raug kho, nkag mus:
Kauj ruam 5
Txuag hloov pauv ntawm cov ntaub ntawv kho siv cov "Cov Ntaub Ntawv" - "Txuag" xaiv thiab tshawb xyuas qhov ua haujlwm ntawm tus widget ntawm koj nplooj ntawv. Tam sim no tiav ntawm cov txuas ntxiv rau koj lub xaib tiav.