var ids=$("[name=‘ck’]:checked").map(function(){ return this.value; }).get().join(); 即可选中选中的多选框 然后用ajax传入后台,用string类型接受