Cov nplooj ntawv nrawm nrawm (AMP) lub tshuab hluav taws xob rau kev tsim Google AMP nplooj ntawv , AMP plugins thiab AMPHTML tag lub tshuab hluav taws xob txhawb nqa kev coj ua ntawm koj tus kheej JavaScripts.
Cov Kev Cai JavaScripts thiab Cov ntsiab lus Iframe tsuas yog siv tau hauv AMP nplooj ntawv hauv qee yam kev mob.
Koj tus kheej JavaScript chaws tau tsuas yog thauj rau hauv AMPHTML yog tias nws tso ntawm ib qho iframe.
Nyob rau hauv lem, iframes hauv AMPHTML (ntawm 'amp-iframe' tag) tsuas yog txais cov ntsiab lus uas muaj kev sib txuas ntawm HTTPS.
Yog tias koj xav siv koj tus kheej JavaScripts hauv AMPHTML, koj yuav tsum muab lawv los ntawm kev sib txuas ntawm HTTPS thiab tom qab ntawd muab sib xyaw rau hauv cov nplooj ntawv sib txawv ntawm lub vev xaib los ntawm Iframe, yog li ntawd Accelerated Mobile Pages Generator tuaj yeem paub txog koj li JavaScripts thiab hloov lawv rau 'amp Hloov-ua qauv' cim npe thiab sib sau lawv mus rau hauv AMP nplooj.
Lub AMPHTML lub tshuab hluav taws xob thiaj li lees paub qhov sib xyaw iframes (suav nrog JavaScripts), hloov lawv rau hauv cov cim 'amp-iframe' cim npe, thiab ua rau tus kheej JavaScripts muaj nyob rau hauv AMP version.
Txhawm rau siv koj tus kheej JavaScript hauv AMPHTML, cov xwm txheej hauv qab no yuav tsum tau ntsib: