美文网首页
Google Chrome 插件开发

Google Chrome 插件开发

作者: JaiUnChat | 来源:发表于2017-02-09 00:23 被阅读55次

官网入门简介附小例子
概述Overview
debugging tutorial
chrome.* APIs documentation
developer's guide
各种例子
360中文版
知乎资源帖
Github例子
manifest文件完整参数

1content_scripts 嵌入脚本(嵌入在浏览页面中,可访问浏览页面元素)类似JS注入。
2background 后台脚本,可以理解为一个后台程序
3嵌入脚本可以和后台脚本直接通信,调用其方法,这个用的不多
4嵌入脚本可以和后台脚本间接通信,后台监听事件,前台调用事件,主要就用这个
5chrome调试 打开发人员工具,maintab:Source->subtab:[Source,Content scripts,Snippets]嵌入代码在Content scripts中

相关文章

网友评论

      本文标题:Google Chrome 插件开发

      本文链接:https://www.haomeiwen.com/subject/ndgbittx.html