摘要:
比如想在在页面原样输出$a{ldelim}$a{rdelim}想要不被smarty解析的用标签literal{literal}<script> function display(){ alert('hello word'); }</script>{/literal} 阅读全文
摘要:
section循环的学习{section name=名称 loop=循环数组(数组的个数决定循环的次数) start=开始(0) step=步阶(1) max=最大循环次数} {sectionelse} loop指定的数组没有值时 {/sectionelse}{/section} 二维数组的循环{section name='sec' loop=$person} name:{$person[sec][0]},age:{$person[sec][1]},sex:{$person[sec][2]}<br/>{/section} 阅读全文