青黛let formData = yfStocks JSONstringifythistable1dataSource;defHttp post url thisurlyfYpLrInfo params formData thenresult = thistable1selectedRows = ; finally = thistable1loadi
要获取request里的formData数据,可以使用request.getParameter()方法。根据代码中的例子,formData数据是通过params参数传递的,所以可以使用request.getParameter("yfStocks")来获取formData数据。修改代码如下:
@RequestMapping(value = "/yfYpLrInfo", method = RequestMethod.POST)
@ResponseBody
public Result<?> yfYpLrInfo(HttpServletRequest request) {
String yfStocks = request.getParameter("yfStocks");
// 处理formData数据
}
在上述代码中,通过request.getParameter("yfStocks")获取到了formData数据的值,并将其赋值给了yfStocks变量。然后可以根据需要对这个formData数据进行处理。

原文地址: http://www.cveoy.top/t/topic/iEpJ 著作权归作者所有。请勿转载和采集!