【转】Ajax+PHP快速上手及应用
1、ajax是什么及其工作原理
Ajax 由 HTML、JavaScript™ 技术、DHTML 和 DOM 组成,这一杰出的方法可以将笨拙的 Web 界面转化成交互性的 Ajax 应用程序。
2、创建XMLHttpRequest对象
对于Ajax,最核心的一个对象是XMLHttpRequest,所有的Ajax操作都离不开对这个对象的操作
首先我们来了解怎么在javascript中创建这个对象:
JS代码:
xmlHttp = new XMLHttpRequest();(标准浏览器)
xmlHttp = new ActiveXObject('Microsoft.XMLHTTP');(针对IE)
3、XMLHttpRequest对象相关方法
打开请求
XMLHttpRequest.open(传递方式,地址,是否异步请求)
准备就绪执行
XMLHttpRequest.onreadystatechange
获取执行结果
XMLHttpRequest.responseText
利用 ps 命令查看进程的位置
MySQL 重置 root 密码
killall 中的 signal
Kafka 的安装及启动
TypeScript 中 Optional Chaining 和 Nullish Coalescing
Redis 的使用
TypeScript 中限制对象键名的取值范围
React17 使用 JSX 的情况下无须再显式导入 React
使用 golang 获取远程地址视频的时间
Copyright © 2011-2022 走看看