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

编程入门 行业动态 更新时间:2024-10-10 09:19:22

The entity name must <a href=https://www.elefans.com/category/jswz/34/1461920.html style=immediately follow the '&' in the entity reference"/>

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

转载自一个老外的博客。地址:/blog/2008/01/30/the-entity-name-must-immediately-follow-the-in-the-entity-reference/

主要是flex 在绑定里面加两个或者多个判断条件的情况。

比如visible="{ A && B}"表达这样一个意思时,出现标题的错误。 主要是xml无法解析 &&这样一个逻辑符号。所以要将他写出

visible="{(A)&amp;&amp;(B)}"这样就可以了。。

If you’ve ever written code in a binding tag and gotten aspecial character error try html-encoding the character like you’ddo if you were encoding regular text:

Error:

<mx :TextInput text= "{(_feed.url&&!_feed.isTemporary)?_feed.url:'Save Feed to generateURL'}" />

Works:

<mx :TextInput text= "{(_feed.url&amp;&amp; !_feed.isTemporary)?_feed.url:'SaveFeed to generate URL'}" />

It makes sense after the fact but before you actually do it, itjust looks odd to html-encode youractionscript.-翻译:运行的时候是能运行的通的,但是,在as代码里面,看上去有点怪怪的。。

大概的意思就是我上面的意思了。

更多推荐

The entity name must immediately follow the '&' in the entity refe

本文发布于:2023-08-03 04:35:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1284039.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:immediately   entity   follow   reference   amp

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!