2011-03-29 95 views

回答

1

你可以給你的問題添加一些代碼並解釋你有什麼問題嗎?

很難知道您的擴展程序出了什麼問題,卻沒有看到任何代碼或知道您的目標是什麼或出了什麼問題。

如果你使用jQuery遇到問題,請確保您在清單中,這樣的事情包括它:

{ 
    "name" : "Foo", 
    "version" : "1.0.0", 
    "description" : "Do some foo thing", 
    "content_scripts" : [ 
     { 
      "matches" : [ 
       "http://*/*", 
       "https://*/*" 
      ], 
      "js" : ["js/jquery-1.6.1.js", "js/myContentscript.js"], 
      "run_at" : "document_end" 
     } 
    ], 
    "icons" : { 
     "16" : "images/16.png", 
     "22" : "images/22.png", 
     "32" : "images/32.png", 
     "48" : "images/48.png", 
     "128" : "images/128.png" 
    } 
} 

還要確保jQuery的文件實際上是在你的包。