Blogger Information
Blog 30
fans 0
comment 0
visits 23408
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
Ajax post/get/ajax 三种方法实例
深海巨兽皮皮虾的博客
Original
820 people have browsed it

Ajax 三种方法:

$.get( url ,data ,funciton)

$post(url,data ,function)

$.ajax({

type: post/get

url: 

data :  { 表单ID  } //从表单拿到的数据 要进行 序列化 seria lize,通过JS变量传递的不需要 格式为  

{ name1: var1, name2:var2,... }

dataType: json/xml/text

success:function(data) //data 为返回的json对象

})

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