我有下面的html,警告只在Mozilla Firefox中有效,當我點擊按鈕時。爲什麼?jquery ajax請求只適用於firefox
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("button").click(function(){
$.ajax({url:"https://graph.facebook.com/1524623057/",
success:function(){
alert(1);
}});
});});
</script>
</head>
<body>
<button>send request</button>
</body>
</html>
[jquery的ajax不能在facebook應用中工作]的可能副本(http://stackoverflow.com/questions/1186855/jquerys-ajax-not-working-in-facebook-apps) – Jasper