在Freemarker中不支持三目表達式(bool ? true: false ),但是有替代其功能的freemarker表達式。
可以使用?string和?then進行類三目的操作。
bool ?string('yes',no)
bool ?then('yes','no')
更具體的直接點擊下方資源鏈接,看官方文檔的詳細說明吧。
在Freemarker中不支持三目表達式(bool ? true: false ),但是有替代其功能的freemarker表達式。
可以使用?string和?then進行類三目的操作。
bool ?string('yes',no)
bool ?then('yes','no')
更具體的直接點擊下方資源鏈接,看官方文檔的詳細說明吧。
代碼: public class PropertiesControl : Grid { [TypeConverter(typeof(LengthConverter))] public d