我几天为了实现一个小小的功能(奥运圣火传递路线).Js读取了下xml文件,为了适应IE与FF还是费了一点时间的.

 1我看IE与FF------Js读取xml文件<script language="javascript" type="text/javascript">
 2我看IE与FF------Js读取xml文件  var xmlDoc;
 3我看IE与FF------Js读取xml文件  function showcurcity()
 4script>

以下是xml的片断.
 1我看IE与FF------Js读取xml文件<?xml version="1.0" encoding="gb2312" ?>
 2我看IE与FF------Js读取xml文件<root>
 3我看IE与FF------Js读取xml文件  <citymessage>
 4我看IE与FF------Js读取xml文件    <date>2008年4月29日</date>
 5我看IE与FF------Js读取xml文件    <city>胡志明市</city>
 6我看IE与FF------Js读取xml文件    <url>http://torchrelay.beijing2008.cn/cn/journey/hochiminhcity/</url>
 7我看IE与FF------Js读取xml文件  </citymessage>
 8我看IE与FF------Js读取xml文件  <citymessage>
 9我看IE与FF------Js读取xml文件    <date>2008年4月30日</date>
10我看IE与FF------Js读取xml文件    <city>香港</city>
11我看IE与FF------Js读取xml文件    <url>http://torchrelay.beijing2008.cn/cn/journey/hongkong/</url>
12我看IE与FF------Js读取xml文件  </citymessage>
13我看IE与FF------Js读取xml文件</root>

相关文章:

  • 2021-05-23
  • 2021-06-14
  • 2022-12-23
  • 2022-01-13
  • 2021-08-15
  • 2021-07-21
猜你喜欢
  • 2022-03-11
  • 2022-02-07
  • 2022-02-02
  • 2021-10-07
相关资源
相似解决方案