更新时间:2022-06-25 23:36:33
$.ajax({ async: false, type: 'GET', url: 'http://localhost/play.php', success: function(data) { //callback } });
应该这样做。
http://docs.jquery.com/Ajax/jQuery.ajax#options
jQuery:可以在继续之前等待$ .get完成加载吗?