在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标签添加在页面

posted @ 2018-07-22 11:46  东东乐day  阅读(1787)  评论(0编辑  收藏  举报