阮一峰的IT笔记:首页 -> 分类 -> Javascript 查看所有文章:按分类 | 按月份

读取XML文档示例:服务器返回美国州名列表

点击第一个按钮,将从服务器加载XML文档,然后在警告框中显示列于文档中的所有州。

点击第二个按钮,也会从服务器加载XML文档,不过只在警告框中显示北部各个地区的州。

点击打开

修改后的示例:

点击打开

« 遍历DOM元素的方法 | 首页 | 动态创建内容的DOM方法 »

About

This page contains a single entry from the blog posted on 2007年05月06日 12:00.

The previous post in this blog was 遍历DOM元素的方法.

The next post in this blog is 动态创建内容的DOM方法.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.33

Post a comment