Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在加载完成后将 jQuery 嵌入到带有 Firebug 的网站上。
我尝试使用 Firebug 放入<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>标签BODY,但没有奏效。
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
BODY
使用 Firebug,我无法访问标签实际所属HEAD的网站部分。<script>
HEAD
<script>
怎么样
var script = document.createElement('script'); script.src = '//code.jquery.com/jquery-latest.min.js'; document.getElementsByTagName('head')[0].appendChild(script);