博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
使用AJAX的最简单示例
阅读量:7003 次
发布时间:2019-06-27

本文共 322 字,大约阅读时间需要 1 分钟。

hot3.png

示例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.

部署运行

162302_VDd9_2437179.png

点击“通过AJAX改变内容”

162329_jaUi_2437179.png

myDiv里的内容就会在页面没刷新的情况下替换成test1.txt里的内容。

 

转载于:https://my.oschina.net/xiaozhiwen/blog/1593266

你可能感兴趣的文章