木子屋 Dnawo's BLOG

Chrome控制台(console)给页面动态引入jQuery方便调试示例

👤 dnawo 📅 2020-03-18 👁 5007 👍 0 💬 0 🔄 来源:本站原创
使用Chrome控制台调试页面时,如果页面没有使用jQuery调试起来不方便,我们可以在控制台给页面动态引入jQuery方便调试:

var importJs=document.createElement('script');
importJs.setAttribute("type","text/javascript");
importJs.setAttribute("src", 'https://code.jquery.com/jquery-1.12.4.min.js');
document.getElementsByTagName("head")[0].appendChild(importJs);

图片

评论(0)

暂无评论。

验证码
评论需审核通过后显示
← 上一篇 易达福建省三通一达快递运费一览表 下一篇 → 新冠肺炎中国个人防疫经验小贴士