0
我正在做一個擴展鉻,我將要使用的一些功能將使用jQuery。我很難在網上找到有效的解決方案。Chrome擴展:清單和遠程谷歌API(jQuery)
core.js:
$(document).ready(function(){
init();
});
function init()
{
$(":button").click(function(){
console.log("test");
//more code here...
});
}
extension.html:
<html>
<head>
<title>awesome</title>
<script src="scripts/core.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
</head>
<body>
<button id="getThem">GET!</button>
</body>
</html>
在我的清單我有名稱,版本,manifest_version(2),說明,browser_action-> default_popup(推廣。 HTML),我不確定剩下的是什麼。你能幫我把這些基本要素拼湊起來嗎?
PS。以下是一個截屏視頻,演示如何識別和解決問題:http://stackoverflow.com/questions/17601615/the-chrome-extension-popup-is-not-working-click-events-are-not-handled/17612988 #17612988 –