随机调用10条,示范代码如下:
{eycms:rs top="10" table="ey_content" where="islock=1" order="rnd()"}
<a href="{$rs[link]}" title="{$rs[title]}">{eycms.cutstr($rs[title],80,1)}</a>
{/eycms:rs}
|
说明:主要是order参数使用rnd()即可
随机调用10条,示范代码如下:
{eycms:rs top="10" table="ey_content" where="islock=1" order="rnd()"}
<a href="{$rs[link]}" title="{$rs[title]}">{eycms.cutstr($rs[title],80,1)}</a>
{/eycms:rs}
|
说明:主要是order参数使用rnd()即可