【问题标题】:What's wrong with this url?这个网址有什么问题?
【发布时间】:2010-09-20 20:36:19
【问题描述】:

为什么 Xul 应用会说

XML 解析错误:格式不正确

为:

    <browser class="AppBar" type="content" src="test.html?img1=img1.jpg&img2=img2.jpg" flex="4"/>

&amp;img2=img2.jpg"的等号处?

请注意,它可以在没有参数的情况下工作。

【问题讨论】:

    标签: html url xul xulrunner malformed


    【解决方案1】:

    和号&amp;amp;..

    xml转义一般为&amp;amp;

    <browser class="AppBar" type="content" src="test.html?img1=img1.jpg&amp;img2=img2.jpg" flex="4"/>
    

    【讨论】:

    • 知道了.. 顺便问一下,使用 [CODE] 关键字转义代码的方式如何?你知道吗?
    • 对不起,我不明白你的意思。
    • 嗨,只是为了在这里注册,我在谈论
    【解决方案2】:

    将 & 更改为 &amp;amp;

    你还需要为this

    ' -> &apos;
    < -> &lt;
    > -> &gt;
    " -> &quot;
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-05-26
      • 2021-08-20
      • 2015-09-23
      • 2021-02-27
      • 2012-03-10
      • 2010-11-01
      相关资源
      最近更新 更多