自定义函数 Smarty 提供了几个自定义插件函数,您可以在模板中使用它们。 {counter} {cycle} {eval} {fetch} {html_checkboxes} {html_image} {html_options} {html_radios} {html_select_date} {html_select_time} {html_table} {mailto} {math} {textformat}