0
工作我做了同步Ajax請求,我想展現出圖像顯示圖像不鉻
<div id='loadingmessage' style='display:none'>
<img src='images/ajax-loader.gif'/>
</div>
與請求
$.ajax({
type: "POST",
beforeSend : function(){
$('#loadingmessage').show(); // show image..
},
url: "get_surrounding.php",
data: SendData,
cache: false,
processData: false,
contentType: false,
async: false
}).done(function (data2) {
$('#loadingmessage').hide(); // hide image
newPopup('show_surrounding.php',data2);
});
此的JavaScript在Firefox中工作,但不在鉻,任何解決方法?
創建JSFIDDLE演示此問題。 –