我想在内容页面上使用插件,这是我的代码:
清单
<my-directive for_sake_of_calling="dir_var" on-alarm="emergency(parent_var,dir_var)"/>
content.js
{
"manifest_version": 2,
"name": "Test",
"description": "foo",
"version": "1.0",
"browser_action": {
"default_icon": "icon.png",
"default_popup": "popup.html"
},
"options_ui": {
"page": "options.html",
"chrome_style": true
},
"permissions": [
"activeTab",
"storage",
"https://google.com/*"
],
"content_scripts": [{
"matches": ["http://google.com/*"],
"js": ["jquery-3.1.0.min.js", "simply-toast.min.js"],
"css": ["simply-toast.min.css"],
"run_at": "document_end"
}]
}
jQuery工作正常但我在尝试simpleToast ...
$.simplyToast('success', 'This is a success message!'); // Line 72
时遇到此错误。不知道我在这里缺少什么。
答案 0 :(得分:0)
我想错误的语法!
OFFSET 18