惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

腾讯CDC
Schneier on Security
Schneier on Security
B
Blog RSS Feed
aimingoo的专栏
aimingoo的专栏
P
Proofpoint News Feed
A
About on SuperTechFans
Recorded Future
Recorded Future
Recent Announcements
Recent Announcements
Microsoft Security Blog
Microsoft Security Blog
L
LangChain Blog
Hugging Face - Blog
Hugging Face - Blog
The GitHub Blog
The GitHub Blog
Google DeepMind News
Google DeepMind News
T
Tailwind CSS Blog
Vercel News
Vercel News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
MyScale Blog
MyScale Blog
V2EX - 技术
V2EX - 技术
N
Netflix TechBlog - Medium
F
Fortinet All Blogs
V
Visual Studio Blog
Martin Fowler
Martin Fowler
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
博客园 - Franky
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
T
The Exploit Database - CXSecurity.com
F
Full Disclosure
Scott Helme
Scott Helme
H
Heimdal Security Blog
博客园 - 叶小钗
Google DeepMind News
Google DeepMind News
Cyberwarzone
Cyberwarzone
Application and Cybersecurity Blog
Application and Cybersecurity Blog
V
Vulnerabilities – Threatpost
Blog — PlanetScale
Blog — PlanetScale
Security Latest
Security Latest
WordPress大学
WordPress大学
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Troy Hunt's Blog
S
SegmentFault 最新的问题
Forbes - Security
Forbes - Security
Jina AI
Jina AI
S
Securelist
小众软件
小众软件
Simon Willison's Weblog
Simon Willison's Weblog
J
Java Code Geeks
AWS News Blog
AWS News Blog
N
News and Events Feed by Topic
博客园 - 三生石上(FineUI控件)
量子位

博客园 - 传说一梦

在class文件中读取Tomcat站点的根目录 我的新Blog文章 今天,我正式更换了自己的Blog空间 介绍两种国内访问Blogger.com的方式 absolute方式并不是好的Oracle分页查询方式 谈谈Ajax的“异步” 微软也会存在的Ajax误区——强制刷新页面内容 Scriptaculous 中的 "... getStyle is not a function." 错误 SVN Web Client中文修订版下载 词点——点评词汇,共享您的智慧! Java中从Orcle里取出数据时,为什么提示“无效的列索引” [链接] Ajax相关 推荐两款Firefox加速软件 取当月数据的算法 关于Linux下C语言编译器gcc不认识bool类型的问题 关于Ajax中XMLHttpRequest对象的status属性值问题 Window Live Toolbar 初体验 贵的比便宜的好? 庆祝杭州移动电视诞生一周年
[专题] Ajax三种数据格式的读取实例
传说一梦 · 2006-05-28 · via 博客园 - 传说一梦

  客户端的Ajax与服务器之间的数据传输,通常有三种格式:Text、XML和JSON格式。下面是Ajax从服务器端读取这三种格式数据的实例代码(为了简化过程,用.txt文件和.xml文件充当服务器端):

  1. 用Ajax读取Text格式的数据
  2. 用Ajax读取XML格式的数据
  3. 用Ajax读取JSON格式的数据

附源码:responseText.rarresponseXML.rarJOSN.rar

Update1:


  在 IE 读取XML格式数据时,代码必需在服务器才能运行,本地可能无权访问返回的XML对象。

posted on 2006-05-28 17:41  传说一梦  阅读(1340)  评论(0)    收藏  举报