Home  >  Article  >  Web Front-end  >  Ajax simple structure sample code for jquery_jquery

Ajax simple structure sample code for jquery_jquery

WBOY
WBOYOriginal
2016-05-16 16:59:56837browse
Copy code The code is as follows:

$.ajax({
type: "POST",
url:url,
async:false,
data: param,
contentType:"json",
success:function(date){
if(date.success){
}
},
error:function(date){
}
});
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn