jsp 中 out.write()不能显示数字或乱码

out.write(n)不能显示或者乱码(n是任意一个数字)

比如:

 out.write(6);
 //没有结果
out.write(6999999);
//出现乱码,结果:쾿

要想输出数字就只能转换为字符串:

 out.write(666 + "");
 //结果:666
posted @ 2017-04-07 15:56  你好潘先生  阅读(1020)  评论(0)    收藏  举报