Categories
CS

Chrome Extension Development 谷歌浏览器扩展开发

如何调试:

找到相应的图标, 右键 审查元素, 找到Console 会看到红色的调试信息

QQ截图20140126221831

QQ截图20140126222018

以上这个信息是因为Chrome因为安全机制不允许popu.html等静态文件直接包含js代码,必须用

<script src=”jquery.js”></script>的方式来间接的导入js代码才可以.

Refused to execute inline script because it violates the following Content Security Policy directive: "script-src ‘self’ chrome-extension-resource:".

Leave a Reply

Your email address will not be published. Required fields are marked *