或者你可以在Smarty中使用PHP函数,这里是针对number_format的,你也可以使用其他PHP函数 :)PHP : number_format($number, 2, '.', ','); SMARTY : {$number|number_format:2:".":","}