当我们写判断条件时,如果多个判断条件,都是用&&写多个判断条件,但是当在mxml文件中写多个判断时,写&却不好使,原因就是因为需要转义,常见的转义字符如下:
< <
> >
& &
' '
" "
具体使用如下:
<mx:DataGridColumn labelFunction="showstate" headerText="状态" id="status" sortCompareFunction="statusSortHandler" visible="{type != null && type != ''}"/>