Ajax sending and receiving requests
May 24, 2018 am 10:53 AM这篇文章主要为大家详细介绍了Ajax发送和接收请求的相关资料,感兴趣的小伙伴们可以参考一下
首先Ajax的不刷新页面提交数据,现在应用非常广泛,废话不多说马上进主题!!
基本上浏览器能接收的信息,Ajax都可以接收,ex:字符串,html标签,css标签,xml格式内容,json格式内容等等.....
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
|
ajax的onreadystatechange事件最多接收四个变化状态
readystate的返回状态值:
0 (未初始化) 对象已建立
1(初始化) 已调用open方法
2(发送数据) 已调用send方法
3(数据传送中) 已返回部分数据
4 (完成) 请求成功
上面是我整理给大家的,希望今后会对大家有帮助。
相关文章:
The above is the detailed content of Ajax sending and receiving requests. For more information, please follow other related articles on the PHP Chinese website!

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

How to send files to others on TikTok? How to delete files sent to others?

How to solve the 403 error encountered by jQuery AJAX request

How to solve jQuery AJAX request 403 error

How to get variables from PHP method using Ajax?

How to solve the problem of jQuery AJAX error 403?

How to use check-ins with home, different locations, and timers

PHP vs. Ajax: Solutions for creating dynamically loaded content

Common application scenarios of the Head request method in Laravel
