{* 定义函数 *} {function echoname } <p>我的姓名是: {$username}</p> {/function} {* 调用 *} {echoname username='chao'}