0

I'm very very new in HTML and JavaScript development.

My goal is to develop a WebWorks Playbook app, but as it is identical to an Offline HTML5 app I ask this:

I want to read an XML file using JavaScript. Because it is an Offline application I don't know how to get access to XML file.

Do you know how can I get access to this XML file?

And then, how can I read it? May I use jQuery?

4

1 回答 1

0

您可以使用 HTML5 的 localStorage 将 XML 文件存储在用户的浏览器中(作为字符串)。
然后在离线时,从 localStorage 中读取。

于 2011-05-30T13:01:23.777 回答