2 回答

TA貢獻1829條經(jīng)驗 獲得超13個贊
您幾乎做對了,您唯一需要修復的是腳本順序。您在內(nèi)容腳本中使用 jQuery,因此應(yīng)首先加載 jQuery:
{
"name": "Chrome Extension Test",
"version": "1.0",
"description": "Chrome extension to investigate Etsy product listings.",
"permissions": [
"storage",
],
"browser_action": {
"default_icon": {
"16": "images/get_started16.png"
},
"default_popup": "background.html",
"icons": {
"16": "images/get_started16.png"
},
"default_title": "Seller Tools"
},
"background": {
"scripts": [
"js/jquery/jquery.js", "background.js"
],
"persistent": false
},
"manifest_version": 2
}
添加回答
舉報