`

Jquery提交json数据

 
阅读更多
$.ajax({
  type: "POST",

  url: ‘url',
  data:JSON.stringify(dataObject) ,
  contentType: "application/json",
  dataType: 'json',  
success: function(json){
    alert(json);
  },
  error: function(){
    alert('fail');
  }
});
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics