NutMap nutMap1=new NutMap();
当文件为空时,我赋值:
nutMap1.put("error","文件名为空!");
nutMap1.put("Newoltpon"," ");
当非excel文件是,我赋值
nutMap1.put("error","非EXCEL文件!");
nutMap1.put("Newoltpon"," ");
但非分局提交的文件时,我赋值:
nutMap1.put("error","非分局提交文档!");
nutMap1.put("Newoltpon"," ");
当所有条件正确时:我赋值
nutMap1.put("newoltpon"+countoltpon,row.getCell(17).toString());
。。。。
nutMap1.put("error":" ");
然后 return nutMap1;
但返回页面时,发现,不符合条件的是正常的格式,但符合条件的却是:
{"nullObject":false,"properties":{"newoltpon0":"731FRO.SDXHY/Q-EOLT-MA5680T/17/0/13(EPSD)/5","error":" "}}
其他都是{"error":"非分局提交文档!","Newoltpon":" "},这个是怎么回事?
正常条件的都是字符串啊,我是用的ajaxFileupload,我要求返回的datatype:'json"
4 回复
添加回复
请先登陆