Blogger Information
Blog 4
fans 0
comment 0
visits 4101
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
Ajax的运用以及和json的关系
陈伟龙的博客
Original
840 people have browsed it

用Ajax封装的一个函数,其中有对IE6、7的兼容,还有get/post,不同方式所要采用的技术

1.png

ajax是前端技术要实现无刷新的后端验证,就必须 找到一个桥梁,这个就是json格式的数据传输形式

php中将格式转成json用json_encode()函数

在前端js中再解码过来用JSON.parse()函数



























































Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post