.crx文件在Chrome中安装 [英] .crx file install in chrome

查看:82
本文介绍了.crx文件在Chrome中安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚创建了一个非常简单的chrome扩展程序,它工作正常.但是,当我转换为.crx文件并尝试使用chrome打开文件时,什么也没发生.我的chrome浏览器版本是19.0.1081.2 dev-m.我的扩展名使用jquery-1.4.2.min.我不明白是什么问题?

I have just created a very simple chrome extension and it works fine. But when I converted to .crx file and try to open it with chrome, nothing happens. my chrome browser version is 19.0.1081.2 dev-m. My extension uses jquery-1.4.2.min. I could not understand whats the problem?

推荐答案

在Chrome中打开调试控制台,甚至查看html源文件(在浏览器中加载后),确保所有路径都存在有效(即,当您点击链接时,您将获得其内容,而不是错误).当某些内容无效时,请修正路径(例如,删除服务器特定部分,并确保您仅通过/js/jquery-123-min.js之类的路径引用扩展文件中的文件).

Opening the debug console in Chrome, or even looking at the html source file (after it is loaded in the browser), make sure that all the paths there are valid (i.e. when you follow a link you get to it's content, and not an error). When something is not valid, fix the path (e.g. get rid of the server specific part and make sure you only refer to files that are part of your extension through paths like /js/jquery-123-min.js).

这篇关于.crx文件在Chrome中安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆