killersdz
V2EX  ›  微信

请问如何遍历 data 的里面的二级数组?

  •  
  •   killersdz · Mar 29, 2019 · 3113 views
    This topic created in 2603 days ago, the information mentioned may be changed or developed.
    data 的结构是这样的:
    data:{
    AA:aa,
    BB:{
    CC:[ "DD":dd,"EE":ee ]
    }
    }
    我要遍历 CC
    然后 wx:for 应该怎样写呢?
    我试过
    wx:for="{{BB.CC}}" wx:for-item="item"
    wx:for="{{BB [ CC ] }}" wx:for-item="item"
    wx:for="{{BB [ “ CC ” ] }}" wx:for-item="item"
    都没效果
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5320 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 01:14 · PVG 09:14 · LAX 18:14 · JFK 21:14
    ♥ Do have faith in what you're doing.