有时候为了简洁代码,我们可以这样写。 <input type="text" value="" {if condition="$row['status'] neq 0"} readonly="readonly" {/if}>