2014-06-26 | 发布者:梁国芳 | 查看:3320次
模板可以支持三元运算符,例如:
{$status?'正常':'错误'}{$info['status']?$info['msg']:$info['error']}
{$status?'正常':'错误'}
{$info['status']?$info['msg']:$info['error']}
注意:三元运算符中暂时不支持点语法。