迅睿開源框架是一款PHP8高性能·簡(jiǎn)單易用的PHP開源開發(fā)框架, 基于MIT開源許可協(xié)議發(fā)布,不限制商業(yè)使用,以多端互聯(lián)為設(shè)計(jì)理念, 支持的微信公眾號(hào)、小程序、APP客戶端、移動(dòng)端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
業(yè)務(wù)經(jīng)理
微信掃描以上二維碼
028-61286886
技術(shù)咨詢
title、description都能正常輸出,res返回thumb也有圖片地址,請(qǐng)教下:thumb應(yīng)該怎么寫
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復(fù)@開源社區(qū)插件技術(shù)-阿飛 輸出結(jié)果空白的
先打印console.log(res.data);看看結(jié)構(gòu),是不是thumb是數(shù)組,不是字符串,還有一層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); } }); };
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復(fù)@開源社區(qū)插件技術(shù)-阿飛 輸出結(jié)果空白的
先打印console.log(res.data);看看結(jié)構(gòu),是不是thumb是數(shù)組,不是字符串,還有一層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); } }); };具體看代碼