加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

The entity name must immediately follow the '&am

发布时间:2020-12-16 06:07:26 所属栏目:百科 来源:网络整理
导读:转载自一个老外的博客。地址:http://www.markledford.com/blog/2008/01/30/the-entity-name-must-immediately-follow-the-in-the-entity-reference/ 主要是flex 在绑定里面加两个或者多个判断条件的情况。 比如visible="{ A B}"表达这样一个意思时,出现标

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

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

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

visible="{(A)&&(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代码里面,看上去有点怪怪的。。

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读