$.ajax({ type: "POST", url: ‘url', data:JSON.stringify(dataObject) , contentType: "application/json", dataType: 'json', success: function(json){ alert(json); }, error: function(){ alert('fail'); } });
Jquery提交json数据
最新推荐文章于 2023-10-11 14:00:18 发布
$.ajax({ type: "POST", url: ‘url', data:JSON.stringify(dataObject) , contentType: "application/json", dataType: 'json', success: function(json){ alert(json); }, error: function(){ alert('fail'); } });