收藏
回答

请问嵌套数组中的图片怎么才能显示到页面上呢?

请问嵌套数组中的图片怎么才能显示到页面上呢

回答关注问题邀请回答
收藏

5 个回答

  • Hlxuan.
    Hlxuan.
    2023-09-07
    <view wx:for="{{item.photoAlbum}}" wx:for-item="itm">
      <image src="{{itm}}" mode="" />
    </view>
    
    2023-09-07
    有用 1
    回复
  • optimistic
    optimistic
    2023-09-08

    如果你是新项目,强烈建议你转为 uniapp ,原生不建议,不伦不类的写法

    2023-09-08
    有用
    回复
  • CRMEB
    CRMEB
    2023-09-07
    <view wx:for="{{nestedArray}}" wx:key="index">
      <image src="{{item.image}}" mode="aspectFit"></image>
    </view>
    
    2023-09-07
    有用
    回复
  • 2024
    2024
    2023-09-07

    双层for循环渲染嘛,况且你这src路径也不对,这个效果不是店铺图片显示成轮播效果不是更好

    2023-09-07
    有用
    回复
  • showms
    showms
    2023-09-07

    这种基础问题建议还是看下文档。。

    https://developers.weixin.qq.com/miniprogram/dev/reference/wxml/list.html

    2023-09-07
    有用
    回复
登录 后发表内容