说明下,,,我只是尝试这样怎么接收,,,,知道改用 ,隔开变成字符串发。。
后台代码
public NutMap add(@Attr("adminid") String adminid, @Param("title") String title, @Param("ownerid") String ownerid,
@Param("facilities") String[] facilities)
js代码
```
var imglist = new Array();
$(".thumbnail").each(function() {
var imgurl = $(this).find("a").attr("href");
imglist.push(imgurl);
});
---------------------------------------------------------------------------------------提交,
$.ajax({
url : "../housemodule/admin/add",
type : "POST",
dataType : "json",
data : {
title : title,
ownerid : ownerid,
facilities : check_val)
```
控制台
title:1
ownerid:d1923db704ca48d0be0e329ff0656ea0
facilities[]:WIFI
facilities[]:电冰箱
后台接到数组,数据,,,,
拿错了呢?