Can I add a resource using Chrome Dev Tools?

前端 未结 4 1967

I\'m viewing a webpage using Chrome. The original source does not include jQuery, but it\'d be really helpful to use some jQuery functions to inspect the DOM. It would be a pain

4条回答
  •  野性不改
    2021-02-05 11:11

    Simply copy paste this in the browser console

    var script = document.createElement("script");
    script.src = "http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.js";
    document.body.appendChild(script);
    

    And get back to work !

提交回复
热议问题