thmub的输出应该怎么写 迅睿框架 更新 2024-05-11 13:41:22 baobao title、description都能正常输出,res返回thumb也有图片地址,请教下:thumb应该怎么写
function ShowajaxDiv(divid) { $(".reaproduct").addClass("cur"); $.ajax({ url: "/index.php?appid=1&appsecret=PHPCMF9DA3035A11EE3&s=product&c=show&id="+divid, type: 'get', success: function (res) { $(".riifo-title h3").html(res.data.title); $(".riifo-text p").html(res.data.description); $(".show-item p").html(res.data.content); var html = '' $.each(res.data.thumb, function (i, val) { html += '<img src="'+val.url+'" width="200" />' }) $(".popup-window-content-left-pic").html(html); } }); };具体看代码