迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發框架,基于MIT開源許可協議發布,免費且不限制商業使用,是免費開源的產品,以萬端互聯為設計理念,支持的微信公眾號、小程序、APP客戶端、移動端網站、PC網站等多終端式管理系統。
聯系官方銷售客服
1835022288
028-61286886
title、description都能正常輸出,res返回thumb也有圖片地址,請教下:thumb應該怎么寫
回復@開源社區插件技術-阿飛 輸出結果空白的
先打印console.log(res.data);看看結構,是不是thumb是數組,不是字符串,還有一層thumb[0]
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); } }); };
回復@開源社區插件技術-阿飛 輸出結果空白的
先打印console.log(res.data);看看結構,是不是thumb是數組,不是字符串,還有一層thumb[0]