我想在通过 php 返回的链接之前显示图像。下面是ajax代码
$.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);
}
});