4
有誰知道如何在Firefox插件中正確使用jQuery?我看了,但我無法找到與最新版本的jQuery相關的內容,而且我知道我不能通過腳本標記將它包含在內,因爲存在衝突。在火狐插件中使用jQuery
在此先感謝!
有誰知道如何在Firefox插件中正確使用jQuery?我看了,但我無法找到與最新版本的jQuery相關的內容,而且我知道我不能通過腳本標記將它包含在內,因爲存在衝突。在火狐插件中使用jQuery
在此先感謝!
您可以使用下標加載器將JavaScript代碼(包括JQuery)加載到任意範圍內。見https://developer.mozilla.org/en/MozIJSSubScriptLoader。
Dupe of this:http://stackoverflow.com/questions/491490/how-to-use-jquery-in-firefox-extension – wesbos
不是重複的,不是那些答案適用 - 就像我說的,他們要麼aren沒有正確的做法,或者不適合1.6.2。 – mattsven
對此感到遺憾......當然想到我在那裏看到了greasemonkey O_o –