var jquery = document.createElement('script');
jquery.src = 'https://code.jquery.com/jquery-3.3.1.min.js';
document.getElementsByTagName('head')[0].appendChild(jquery);
如果网页源代码中没有引入jquery是不能在console中使用jquery的,这是在console中执行这段代码就可以使用jquery了
在浏览器console中使用jQuery
最新推荐文章于 2025-02-26 17:41:09 发布