聯(lián)系官方銷售客服
1835022288
028-61286886
有縮略圖10張和10條評論
如何隨機調(diào)取3張縮略圖和3條評論組成一個內(nèi)容。
將下面的代碼重組
<?php if ($thumb) { $key=0;foreach ($thumb as $c) { ?>
<img src="{dr_get_file($c.file)}" >
<?php $key++;} } ?>
{comment module=MOD_DIR order=rand() num=3}
<p>{$t.content}</p>
{/comment}
回復@外聘專員-優(yōu)速IT設計 組合到一起, 一個圖片一個評論, 循環(huán)三次。