网站公告:{$shop_notice},网站快讯:,说明注释:,使用模式:,{foreach from=$post item=name}和{/foreach}标签中间可以任意添加要循环的内容content(可以为任意的东西),循环的次数受到 $post 的限制,name为当前这个循环的对象。方便调用数据。,
网站公告:{$shop_notice}
网站快讯:
{foreach from=$new_articles item=article} {$article.short_title} {/foreach}
说明注释:
{foreach from=$new_articles item=article} : 循环的开始, {/foreach} : 循环的结束 $new_articles: 为要循环的东西,这里为网站快讯 {$article.short_title} : 快讯标题的标签
使用模式:
{foreach from=$post item=name} content {/foreach}
{foreach from=$post item=name}和{/foreach}标签中间可以任意添加要循环的内容content(可以为任意的东西),循环的次数受到 $post 的限制,name为当前这个循环的对象。方便调用数据。
,
网站公告:{$shop_notice}
网站快讯:
{foreach from=$new_articles item=article} {$article.short_title} {/foreach}
说明注释:
{foreach from=$new_articles item=article} : 循环的开始, {/foreach} : 循环的结束 $new_articles: 为要循环的东西,这里为网站快讯 {$article.short_title} : 快讯标题的标签
使用模式:
{foreach from=$post item=name} content {/foreach}
{foreach from=$post item=name}和{/foreach}标签中间可以任意添加要循环的内容content(可以为任意的东西),循环的次数受到 $post 的限制,name为当前这个循环的对象。方便调用数据。
此处评论已关闭