zoukankan      html  css  js  c++  java
  • 浏览器console中加入jquery方便调试

    chrome浏览器F12打开调试界面,在console中输入(firefox同样可以):

    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();
    

      

    这个节点就是我们动态生成的 script 节点.然后把百度上的jquery 地址赋给 jquery 节点.在 head 节点下插入jquery 节点即可.

    回车,然后就可以使用jquery的选择器等很方便的操作调试了。

  • 相关阅读:
    排序
    wine-qq 安装
    逆元模板
    最长上升子序列
    SGU[115] Calendar
    SGU[123] The sum
    SGU[105] Div 3
    SGU[102] Coprimes
    SGU[100] A+B
    poj-1325-Machine Schedule
  • 原文地址:https://www.cnblogs.com/snllll/p/8956179.html
Copyright © 2011-2022 走看看