更新时间:2022-06-04 06:50:03
一种方法(离开你的JavaScript code完好)刚刚宣布你的控制器的方法是这样的:
One method (leaving your JavaScript code intact) is just declaring your controller method like this:
public static void myMethod(@As("ids[]:")List<Long> ids) {
System.out.println(ids.get(0));
}
..输出是你所期望的:
.. the output is what you expect:
[0,1,2,3]