我在前端通过ajax转入参数入后端,但我用getPara(cus_id) 或 getParaValues(cus_id)都取不了值。
后端的Log显示如下:取不了cus_id的数组
JFinal action report -------- 2018-01-04 00:13:51 ------------------------------
Url : GET /schedu/findTaskByCustom
Controller : com.pda.controller.ScheduController.(ScheduController.java:1)
Method : findTaskByCustom
Interceptor : com.jfinal.ext.interceptor.SessionInViewInterceptor.(SessionInViewInterceptor.java:1)
com.pda.interceptor.GlobalInterceptor.(GlobalInterceptor.java:1)
com.pda.interceptor.ExceptionInterceptor.(ExceptionInterceptor.java:1)
Parameter : pageNumber=1 offset=0 limit=10 pageSize=10 cus_id[][]={2,5,6} _=1514996015545
--------------------------------------------------------------------------------
请问是否我方法用错了
除非你用拼接url的方式传参, 才能获取到数组, request.getParaMap这个方法的返回值就是