smarty?section循环出错
<br />......<br /><{section name=s loop=$tips_infos}><br />......<br /><p><{$smarty.section.index}></p>
<div class="aritcle_card">
<a class="aritcle_card_img" href="/ai/1237">
<img src="https://img.php.cn/upload/ai_manual/001/431/639/68b79dbfc9581886.png" alt="吐司AI">
</a>
<div class="aritcle_card_info">
<a href="/ai/1237">吐司AI</a>
<p>超多功能的免费在线生图网站!拥有全网更齐全的模型库,0门槛使用!</p>
<div class="">
<img src="/static/images/card_xiazai.png" alt="吐司AI">
<span>325</span>
</div>
</div>
<a href="/ai/1237" class="aritcle_card_btn">
<span>查看详情</span>
<img src="/static/images/cardxiayige-3.png" alt="吐司AI">
</a>
</div>
<br />//输出当前循环次数(这里次数没输出,还报错了,不知为啥)<br /><{if $tips_infos[s].system ne '1' && ($index=1 || $index=2 ||$index=3 ||$index=4 ||$index=9 ||$index=10 ||$index=11)}><br />//$index=循环次数 $tips_infos[s].system ='1' 并且循环次数为1,2,3,4,9,10,11条件才成立 (因为循环次数出错,不知道这里会不会出问题)<br /><{/section}><br />......<br />
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号