我想在通過php返回鏈接之前顯示圖像。 下面是Ajax代碼在通過php返回鏈接之前顯示圖像
$.ajax({ //Make the Ajax Request
type: "POST",
url: "dbtryout2_2.php",
data: datastr,
success: function (arrayphp) {
//how to display image before this link
var link = $('<a href="#" class="my-class">' + arrayphp + '</a>');
$(".searchby .searchlist").append(link);
}
});
我在這裏看不到任何問題。 –
[jQuery「請稍等,正在加載...」動畫?](http://stackoverflow.com/questions/1964839/jquery-please-wait-loading-animation) – amdorra