jsp中jquery中的代码如下
$.getJSON("ajaxAp!getSex.action",{"id":Math.random()},function(sexOjb){
       for(var i=0;i<sexOjb.length;i++){
$("#sexDiv").append("<input value='"+sexOjb[i].id+"' type='checkbox' name='acSexRange'>"+sexOjb[i].name);
}
});
$.getJSON("ajaxAp!getWeight.action",{"id":Math.random()},function(sexOjb){
       for(var i=0;i<sexOjb.length;i++){
$("#weightDiv").append("<input value='"+sexOjb[i].id+"' type='checkbox' name='acWeightRangg'>"+sexOjb[i].range);
}
});