示例1:
新建两个文件
test.html
Let AJAX change this text
test1.txt
AJAX is not a programming language.It is just a technique for creating better and more interactive web applications.
部署运行
点击“通过AJAX改变内容”
myDiv里的内容就会在页面没刷新的情况下替换成test1.txt里的内容。
本文共 322 字,大约阅读时间需要 1 分钟。
示例1:
新建两个文件
test.html
Let AJAX change this text
test1.txt
AJAX is not a programming language.It is just a technique for creating better and more interactive web applications.
部署运行
点击“通过AJAX改变内容”
myDiv里的内容就会在页面没刷新的情况下替换成test1.txt里的内容。
转载于:https://my.oschina.net/xiaozhiwen/blog/1593266