如:

 

<mx:Label text="Test" visible="{ boolVar1 && boolVar2 }"/>

 

会报错 : -> The entity name must immediately follow the '&' in the entity reference.

正确的写法如下: -> 使用HTML中相关字符的完全限定符.

 

<mx:Label text="Test" visible="{ boolVar1 & a m p;& a m p; boolVar2 }"/>//把amp中间的空格去掉,因为我不加空格,页面就直接解析成&了

 

附:

最全的HTML特殊字符列表

 

 

 

相关文章:

  • 2022-12-23
  • 2021-11-20
  • 2021-11-02
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2021-08-03
  • 2022-12-23
猜你喜欢
  • 2022-03-05
  • 2022-12-23
  • 2021-12-22
  • 2021-10-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案