只需添加到manifest.json
"web_accessible_resources":["options.html"]
这将来自contentscript.js
window.open(chrome.extension.getURL( "options.html"));
这对我有用,可以将选项作为新标签打开:
chrome.tabs.create({
url: "options/index.html"
})
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3672 次 |
| 最近记录: |