有些网站并没有使用jQuery,但有时候我们想使用它进行操作时,可以引入它
F12打开控制台
在Console处输入如下代码,回车,此时,该页面便具有了jQuery,你就可以方便的进行JS操作啦
代码如下
var jquery = document.createElement('script');
jquery.src = "http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"; //若调试页面是https的这里也修改为https.
document.getElementsByTagName('head')[0].appendChild(jquery);
jQuery.noConflict();