chrome的扩展如何在代码里自动安装,急急急!!! js或c++
复制代码代码如下:
{
"external_update_url": "http://myhost.com/mytestextension/updates.xml",
"supported_locales": [ "en", "fr", "de" ]
}
其中supported_locales用来指定为哪些locale(语言环境)的Chrome安装这个扩展。
Windows中的情况类似,只是把json的字段以注册表的形式记录。
扩展保存在哪
两个位置:
1. 本地磁盘上的.crx文件
2. 放在服务器上的url(并且对Windows只能使用WebStore里的url,官方有描述)