在Sdk教程中:https://developer.mozilla.org/en-US/Add-ons/SDK/High-Level_APIs/tabs#Track_a_single_tab
var tabs = require("sdk/tabs");
function onOpen(tab) {
tab.on("close", logClose);
}
function logClose(tab) {
console.log(tab.url + " is closed");
}
tabs.on('open', onOpen);
当我关闭标签时,控制台说“未定义已关闭”;
如何在标签关闭时知道标签的网址?