跪求 后台怎么获取!!~~~~ 我用的是ThinkPHP5
后台代码是怎么写的啊??怎么接收不到参数啊
请问后台怎么读取上传的data数据
项目例子,仅供参考
/** * 新增车辆 * @param vo * @param files * @return * @throws IOException */ @ResponseBody @RequestMapping(value = "/addTruckInfo", method = RequestMethod.POST) public String addTruckInfo(TruckInfoVo vo, @RequestParam("files") MultipartFile[] files) throws IOException { List < FileInfoVo.ByteExt > byteExts = Lists.newArrayList(); for (MultipartFile file: files) { String filename = file.getOriginalFilename(); FileInfoVo.ByteExt byteExt = new FileInfoVo().new ByteExt(); byteExt.setBytes(file.getBytes()); byteExt.setExt(FilenameUtils.getExtension(filename)); byteExts.add(byteExt); } return JacksonUtil.objToJson(truckFrontApi.addTruckInfo(vo, byteExts)); }