在两个Firefox插件(交叉扩展通信)之间进行通信 [英] Communicating between 2 Firefox Add-Ons (Cross-Extension Communication)

查看:153
本文介绍了在两个Firefox插件(交叉扩展通信)之间进行通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在两个Firefox插件之间传递数据和消息(Google Chrome的功能,这里)?

How do I pass data and messages between 2 Firefox Add-Ons (the way Google Chrome does it, here)?

推荐答案

所有Firefox插件共享相同的全局范围做一个覆盖(基本上每个附加使用)。您只需要创建一些共享对象来回传递数据。

All Firefox add-ons share the same global scope when you do an overlay (which essentially every add-on uses). You just need to create some shared object to pass data back and forth on.

这篇关于在两个Firefox插件(交叉扩展通信)之间进行通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆