纯jsp的方式用ajax提交转成json格式的数据的方法 success:function(d){ //转成json字符串 var json = $.parseJSON(d); alert(json); } 而后端返回为String类型 return "{\"msg\":true}";