Jquery为什么无法解析 XML呢?! http://topic.csdn.net/u/20100731/12/ad4d6c11-6a83-4427-aef1-b1c48c7f1ad0.html?96407代码很清晰!在asp.net区没人鸟我那位高手帮我看看 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 后台返回的data是什么?$(data) 能找到吗? 能,使用$("#content").append ( xml);页面可以显示以下内容:<Root> <Info> <HeadImage>头像0</HeadImage> <Name>姓名0</Name> <Content>内容0</Content> <Time>时间0</Time> </Info> <Info> <HeadImage>头像1</HeadImage> <Name>姓名1</Name> <Content>内容1</Content> <Time>时间1</Time> </Info> <Info> <HeadImage>头像2</HeadImage> <Name>姓名2</Name> <Content>内容2</Content> <Time>时间2</Time> </Info> <Info> <HeadImage>头像3</HeadImage> <Name>姓名3</Name> <Content>内容3</Content> <Time>时间3</Time> </Info> <Info> <HeadImage>头像4</HeadImage> <Name>姓名4</Name> <Content>内容4</Content> <Time>时间4</Time> </Info> <Info> <HeadImage>头像5</HeadImage> <Name>姓名5</Name> <Content>内容5</Content> <Time>时间5</Time> </Info> </Root> $(data).find("Info").each(function() { var name = $(this).find("Name").text(); alert(name); }); 你确定你返回的是XML格式 是不是要写上一个<?xml version='' encoding=''?>之类的什么东西 看你能直接$("content").append(xml) 感觉像返回的HTML 用typeof(data)得到的string 晕如何转成XML? 有个jquery实现图片滚动的实例,有点问题,求解决啊…… 新手问题:Ext中分页无显示 有没有javascript 脚本自动排列工具 关于日期的两个问题: 360焦点图,求思路 一个超级简单的问题,答出即给分! 100分,提示缺少函数,还请帮忙 下面代码哪里错了,怎么运行不起来? 再散一贴:) window.opener.document.forms[0].Desc??? Javascript怎样判断定时器是否存在? JQuery的FlexGrid如何通过代码刷新(急)
$(data) 能找到吗?
页面可以显示以下内容:
<Root> <Info> <HeadImage>头像0</HeadImage> <Name>姓名0</Name> <Content>内容0</Content> <Time>时间0</Time> </Info> <Info> <HeadImage>头像1</HeadImage> <Name>姓名1</Name> <Content>内容1</Content> <Time>时间1</Time> </Info> <Info> <HeadImage>头像2</HeadImage> <Name>姓名2</Name> <Content>内容2</Content> <Time>时间2</Time> </Info> <Info> <HeadImage>头像3</HeadImage> <Name>姓名3</Name> <Content>内容3</Content> <Time>时间3</Time> </Info> <Info> <HeadImage>头像4</HeadImage> <Name>姓名4</Name> <Content>内容4</Content> <Time>时间4</Time> </Info> <Info> <HeadImage>头像5</HeadImage> <Name>姓名5</Name> <Content>内容5</Content> <Time>时间5</Time> </Info> </Root>
$(data).find("Info").each(function() {
var name = $(this).find("Name").text();
alert(name);
});
如何转成XML?