thinkphp switch标签嵌套问题
<volistname="album"id="a"><switchname="i.user"><casevalue="$Think.session.ID"><switch...
<volist name="album" id="a">
<switch name="i.user">
<case value="$Think.session.ID">
<switch name="a.album_id">
<case value="$i.image_album">ME1
</case>
<default />
ME2
</switch>
</case>
<default />
<switch name="a.album_id">
<case value="$i.image_album">OTHER1
</case>
<default />
OTHER2
</switch>
</switch>
循环不出来 展开
<switch name="i.user">
<case value="$Think.session.ID">
<switch name="a.album_id">
<case value="$i.image_album">ME1
</case>
<default />
ME2
</switch>
</case>
<default />
<switch name="a.album_id">
<case value="$i.image_album">OTHER1
</case>
<default />
OTHER2
</switch>
</switch>
循环不出来 展开
1个回答
2013-04-14
展开全部
试试IF标签
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询