Thaum twg mus pab tau txoj NTXHUAB publising nplooj ntawv siv jQuery, Kuv ntaus lub pob loj hauv qab ceev tsawv:
Neeg rau zaub mov yuam kev hauv ' /’ Daim ntawv.
Parser kev ua yuam kev
Hauj lwm lawm: Ib qho kev ua yuam kev tshwm sim thaum lub caij cov parsing hauv ib qho chaw uas yuav tsum tau muab cov kev pab no thov. Thov nyeem qhov nram qab no parse kev yuam kev txhawb thiab hloov koj cov ntaub ntawv twg paab.
Lus sam yuam kev parser: Tsuas kawm ntawd tus ntawm lwm yam uas tau ntawm ib phab cov uas muaj cov ua ntawm lwm yam uas ncaj qha.
Qhov yuam kev:
Line 10: Line 11: Line 12: <script Line 13: type="text/javascript" Line 14: src="/jQuery/jquery-1.4.min.js">
Tau qhov twg los thov: /_catalogs/masterpage/KCC_FacultyMember.aspx Kab: 12
Cov ntaub ntawv Version: Microsoft .NET moj khaum Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927
Nws twb yooj yim txaus los txhim kho (h/t rau kuv colleague, Uday Ethirajulu). Nco ntsoov tias cov jQuery chaws nyob sab hauv lub "PlaceHolderAdditionalPageHead" li:
<asp:Chav ContentPlaceholderID = "PlaceHolderAdditionalPageHead" runat = "neeg rau zaub mov">
<tsab ntawv
yam = "ntawv nyeem/javascript"src="/jQuery/jquery-1.4.min.js">
</tsab ntawv>
<Script yam = "ntawv nyeem/javascript">
$(daim ntawv).npaj txhij(muaj nuj nqi() {
// Ci ntsa iab jQuery khoom nov mus.
});
</tsab ntawv>
</kawg>
Raws li kuv nyob Twitter tom http://www.twitter.com/pagalvin
Kuv mas muab kuv cov jQuery hauv lub [sourcecode lus =”xml”][/sourcecode], tab sis tog twg los ua haujlwm.
M.