在Chrome调试器中引入jQuery

在Console中输入以下代码并回车,Console显示"function (a,b){return new m.fn.init(a,b)}"说明导入成功,就可以在Console中直接执行jQuery函数了。

var jq = document.createElement('script');  
jq.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js';
document.getElementsByTagName('head')[0].appendChild(jq);  
jQuery.noConflict();

 

原文地址:https://www.cnblogs.com/tevic/p/4037237.html