JS動的ロードJQ

VaRのスクリプト=のdocument.createElement( "スクリプト" ); 
script.type = "テキスト/ javascriptの" ; 
script.src = "https://code.jquery.com/jquery-1.12.4.min.js" 
document.getElementsByTagName( '頭')[0] .appendChild(スクリプト)。

 

おすすめ

転載: www.cnblogs.com/gaocong/p/11447397.html