If you supply this function with a URL that points to a resource that returns data that is not well-formed (in the XML sense), then you will get an error.
如果这个URL指向的是一个返回的数据结构不合法(从xml的角度来说)的资源,这时候再使用此函数就会得到一个错误。
This simple function creates a table node, then iterates through the book list and creates a row for each book, with a cell for each data element.
这个简单函数创建了一个表格节点,然后循环访问书的列表并为每本书创建一行,为每个数据元素分配一个单元格。
To accomplish this, you can register a callback function with the XMLHttpRequest and then dispatch the XMLHttpRequest asynchronously.
为了实现这个要求,可以在 XMLHttpRequest 上注册一个回调函数,然后异步地分派 XMLHttpRequest。
应用推荐