MXML 中使用 &&

如果在MXML中使用类似下面的代码

<mx:Button enabled="{a && b}"/>

会出现这样的错误

"The entity name must immediately follow the '&' in the entity reference."

一开始我还以为是bug,网上搜了搜才知道似乎是xml的规范中 & 符号需要转义
解决方法:

<mx:Button enabled="{a && b}"/>

https://bugs.adobe.com/jira/browse/SDK-12930

评论