Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要将一些外部网址下载到 Firefox 插件中的字符串。
如何访问外部 url 的内容进行解析?
要在 Firefox 插件中找出当前选项卡的 url,您可以执行以下操作:
var localString = gBrowser.currentURI.spec;
然后你可以按照你想要的方式解析 localString 。