smarty支持php的系统函数可以直接使用{if in_array($str, $arr) || strpos($str, $string)} yes {else} no{/if} 相关文章: 2022-12-23 2022-12-23 2022-02-13 2022-12-23 2021-11-17 2022-12-23 2021-11-17 2021-08-21