FFExt:在浏览器覆盖中安全地包含jQuery

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了FFExt:在浏览器覆盖中安全地包含jQuery相关的知识,希望对你有一定的参考价值。

If you just use a `` element in the overlay, the browser toolbars are reset to their default configuration (at least with jQ 1.3.2).
  1. var _jq = "chrome://clpics/content/jquery-1.3.2.min.js"
  2.  
  3. // Load jQuery without messing with the toolbars.
  4. // Dunno why this is necessary, but it is and it works, so meh
  5. Components.classes["@mozilla.org/moz/jssubscript-loader;1"]
  6. .getService(Components.interfaces.mozIJSSubScriptLoader)
  7. .loadSubScript(_jq);

以上是关于FFExt:在浏览器覆盖中安全地包含jQuery的主要内容,如果未能解决你的问题,请参考以下文章