How to use jQuery in content script in a Firefox Mobile (Fennec) extension?
问题 I am developing a Firefox Mobile (Fennec) extension and I want to use jQuery in the content script. What is the best way to do it? I am doing the testing on the desktop version of Firefox Mobile 4 回答1: overlay.js window.addEventListener("load", function (aEvent){ document.getElementById("browsers").addEventListener("DOMContentLoaded", function onWindowLoad(aEvent){ window.messageManager.loadFrameScript("chrome://myExtension/content/jquery.js", true); window.messageManager.loadFrameScript(