代码之家  ›  专栏  ›  技术社区  ›  Student

这个网址怎么了?

  •  1
  • Student  · 技术社区  · 14 年前

    XML分析错误:格式不正确

    用于:

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

    等于 &img2=img2.jpg"

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

    2 回复  |  直到 14 年前
        1
  •  4
  •   Quintin Robinson    14 年前

    符号 & ..

    xml转义通常是 &amp;

    <browser class="AppBar" type="content" src="test.html?img1=img1.jpg&amp;img2=img2.jpg" flex="4"/>
    
        2
  •  2
  •   Jonas Elfström    14 年前

    &amp;

    你也必须这样做 this

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