我试图用jpm将1登录到控制台。问题是google.com标签打开了,但是1并没有输出。有什么想法吗?
var buttons = require('sdk/ui/button/action');
var tabs = require("sdk/tabs");
var button = buttons.ActionButton({
id: "mozilla-link",
label: "SupBot",
icon: {
"16": "./icon-16.png",
"32": "./icon-32.png",
"64": "./icon-64.png"
},
onClick: handleClick
});
function handleClick() {
console.log(1);
tabs.open("https://google.com");
}