Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/411.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
这是我的清单版本2,但javascript不起作用_Javascript_Html_Google Chrome Extension_Manifest - Fatal编程技术网

这是我的清单版本2,但javascript不起作用

这是我的清单版本2,但javascript不起作用,javascript,html,google-chrome-extension,manifest,Javascript,Html,Google Chrome Extension,Manifest,我想为一个调度程序项目做Google Chrome扩展。我制作了清单,但它只读取HTML,不读取JavaScript { "manifest_version": 2, "name": "FCIS-ASU Scheduler", "description": "chrome extension that you can schedule your events, meetings,and tasks.", "version": "1.0", "browser_action"

我想为一个调度程序项目做Google Chrome扩展。我制作了清单,但它只读取HTML,不读取JavaScript

{
  "manifest_version": 2,

  "name": "FCIS-ASU Scheduler",
  "description": "chrome extension that you can schedule your events, meetings,and tasks.",
  "version": "1.0",

  "browser_action": {
    "default_icon": "icon.png",`enter code here`
    "default_title": "FCIS-ASU Scheduler",
    "default_popup": "HtmlPage1.html"

  },
  "permissions": [
    "https://secure.flickr.com/"
  ]
}

这是因为您没有告诉extension任何js文件。您需要根据需要指定“背景”或“内容”脚本字段值。您应该再次阅读此过程,并阅读其他documenStation.content脚本:[{matches:[:/.mywebsite.com/*],js:[scheduling.js],在以下位置运行:document\u idle,all\u frames:false}],