0

I have a file new.txt and a html file new.html.

In new.txt there are set of data separated by new line.

In new.html which is in the same drive i want to read the from the text file & then write to a <div id='x'> </div>. Is it possible without any server programming & just use jquery to do it.

I tried $.get() and load() but was not able to get anywhere with the code. It displayed the file contents once i used the load() but was not able to manipulate data. Thank you.

4

1 回答 1

0

如果您使用的是 HTML 5 ,则可以使用文件 API来完成。

始终检查浏览器支持!

于 2012-12-06T14:03:12.343 回答