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');
  }
});

猜你喜欢

转载自java12345678.iteye.com/blog/2245840
今日推荐