{volist name='tjres' id='tj'}
<section >
<a href="{:url('index/index/show-news',['id' => '{$tj.id}' ] ) }" ><img src="{$tj.photo}" /></a>
</section>
{/volist}我要传的参数是{$tj.id},但运行后提示错误:<a href="<?php echo url('index/index/show-news',['id' => '{$tj['id']; ?>' ] ) }" >
{$tj['id']}没能被解析出来,如果我想在参数里这样设置,请问我要怎么做
最佳答案