在F12 控制台輸入,可執行jquery操作


<!-- 控制台執行jquery -->
var importJs=document.createElement('script') //在頁面新建一個script標簽
importJs.setAttribute("type","text/javascript") //給script標簽增加type屬性
importJs.setAttribute("src", 'http://ajax.microsoft.com/ajax/jquery/jquery-1.4.min.js') //給script標簽增加src屬性, url地址為cdn公共庫里的
document.getElementsByTagName("head")[0].appendChild(importJs) //把importJs標簽添加在頁面


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM