我在我的 google chrome 扩展弹出文件中包含了一些 adsense 代码。不幸的是,这是行不通的。单击链接时不会打开任何窗口。
常规链接在 google chrome 扩展程序中不起作用。要打开新标签页,需要此代码:
$('#test').live('click', function(){
chrome.tabs.create({'url': 'http://www.stackoverflow.com'}, function(tab) {
// Tab opened.
});
});
那么如何在 google chrome 扩展程序中使用 adsense?
最佳答案
尝试添加<base target="_blank" />
标记为 <head>
你的弹出窗口。
关于google-chrome-extension - 如何在 google chrome 扩展程序中使用 google adsense?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4780981/