返回的json 数据出现了这问题
java吧
全部回复
仅看楼主
level 11
String umsg = "{success:true,msg:'上传成功'}";
PrintWriter out = null;
try {
response.setContentType("text/json; charset=utf-8");
response.setContentType("application/x-json");
out = response.getWriter();
out.print(umsg);
} catch (IOException e)
{

e.printStackTrace();
}
out.close();

为什么会提示下载呢
2012年12月28日 07点12分 1
level 15
[顶]不懂帮顶
2012年12月28日 07点12分 2
[揉脸]
2012年12月28日 07点12分
level 9
双引号
2012年12月28日 07点12分 3
还是不行呀[揉脸]
2012年12月28日 07点12分
level 6
这个跟ie内核是有关系的。
所以不能直接使用。
你需要在json里面在包含一层,并且增加对象。。
2012年12月28日 08点12分 4
1