isbase
1.25D
0.29D
V2EX  ›  问与答

chrome 扩展加载出错但是完全看不出问题在哪里

  •  
  •   isbase ·
    PRO
    · Jun 24, 2016 · 1604 views
    This topic created in 3694 days ago, the information mentioned may be changed or developed.




    关键它不告诉哪里出错了,没有任何线索提供,实在检查不出哪里有问题
    4 replies    2016-06-24 21:34:32 +08:00
    Biwood
        1
    Biwood  
       Jun 24, 2016 via Android
    manifest 版本都没指定,为什么不安装官方教程来写呢
    isbase
        2
    isbase  
    OP
    PRO
       Jun 24, 2016
    @Biwood {
    "name": "hello",
    "version": "2.1",
    "manifest_version": 2,
    "description": "Gets information from Google.",
    "content_scripts": [
    {
    "matches": ["http://*.zimuzu.tv/*"],
    "js": ["copyLink.js"]
    }
    ]
    }


    这样还是相同的错误😓
    gangsta
        3
    gangsta  
       Jun 24, 2016
    manifest 文件名前面多了一个空格
    isbase
        4
    isbase  
    OP
    PRO
       Jun 24, 2016
    @gangsta
    @Biwood

    最后发现是 manifest 文件的权限问题
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5450 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 08:00 · PVG 16:00 · LAX 01:00 · JFK 04:00
    ♥ Do have faith in what you're doing.