{php $i=0} {loop $perms['parent'] $key $value}
展开
{if count($perms['parent'][$key]) >1} {loop $perms['parent'][$key] $ke $val} {if $ke != 'text'} {else} {/if} {/loop}
{/if} {loop $perms['son'][$key] $ke $val} {if count($val) >1} {loop $val $k $v} {if $k != 'text'} {else} {/if} {/loop}
{/if} {/loop} {loop $perms['grandson'][$key] $ke $val} {loop $val $k $v} {if count($v) >1} {loop $v $kk $vv} {if $kk != 'text'} {else} {/if} {/loop}
{/if} {/loop} {/loop}
{php $i++} {/loop}