function Freeze(){
var id_array=new Array();
$('input[name="id"]:checked').each(function(){
id_array.push($(this).val());//向数组中添加元素
});
var idstr=id_array.join(',');//将数组元素连接起来以构建一个字符串
console.log(idstr);
//console.log('----');
//console.log(id_array);
$.ajax({
type: "POST",
url: "/player/ajax_freeze/",
//traditional: true,
data: {
'a' : idstr
},
dataType : 'json',
success: function(ret){
//alert(123);
if (ret.code >= 1) {
location.reload();
}
//console.log(ret);
//alert(ret.code);
}
});
}