我认为manifest.json已正确设置以获取google.com,但ajax报告错误而不是成功。如何为background.html文件创建ajax请求?
manifest.json:https://gist.github.com/4c9f717a626c6f91ff8a
main.js:https://gist.github.com/16b9ae6b24b2d07c383a
我不能发布超过2个链接因为我是新的,所以这里是background.html:
<!doctype html>
<html>
<head>
<title> attempt to GET google.com</title>
<script type="text/javascript" src="scripts/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="scripts/main.js"></script>
</head>
<body>
<p> text goes here </p>
</body>
</html>