开发者

What variables are available in extension scope (like window, gBrowser)?

I know about window, gB开发者_StackOverflow社区rowser, gContextMenu and some more but what are all global variables available to Firefox extensions?


Open the JS shell in Extension Developer. Click enumerateWindows() and then chrome://browser/content/browser.xul. Then type props(window) to see all the global variables (since global variables in JavaScript are really just properties of window. Note however that there have been some reports of Extension Developer causing weird stuff to happen on Firefox 4.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜