CNET中国旗舰网站

ZDNet China | CNET科技资讯网 | 政府采购 | 行业网站联盟





 
标题: [转贴] tpRequest.open 非 xml 文件时不能用getElementsByTagName()吗?
iamke7in
灵玉会员
Rank: 8Rank: 8


UID 307600
精华 3
积分 7194
帖子 677
威望 3320
ZD币 65 元
阅读权限 180
注册 2008-3-14
状态 离线
  楼主
发表于 2008-4-17 14:39  资料  个人空间  短消息  加为好友 
开发者在线

tpRequest.open 非 xml 文件时不能用getElementsByTagName()吗?

请求非   xml   文件时,getElementsByTagName('body').length   总返回   0.   
   
  后来发现   xRequest.open()   只有请求   .xml   文件时才能用   getElementsByTagName()   等函数。我把请求的文件改名为   xml   就可以了。   
   
  请问有什么办法吗?




顶部
热点频道推荐: C/S开发| 数据库| WEB开发| 嵌入式| 项目管理|
 



当前时区 GMT+8, 现在时间是 2009-7-5 09:22

  Powered by Discuz! 5.5.0 © 2001-2007 Comsenz Inc.
Processed in 0.065085 second(s), 3/3 queries

清除 Cookies - 联系我们 - ZDNetChina中文社区 - 无图版