<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.min.js"></script>
<script type="text/javascript">
function postolayi(){
$.ajax({
type: 'POST',
url: 'yorum_gonder.php',
data: $('#form1').serialize(),
success: function(cevap){
$("#sonuc").html(cevap)
}
})
}
</script>
<form id="form1">
<label for="textfield">Name</label>
<input id="textfield" type="text" name="ad" />
<input onclick="postolayi();" type="button" />
</form>
为什么此代码不适用于 Facebook 应用程序?请帮忙