81,092
社区成员
发帖
与我相关
我的任务
分享
function getIds(){
var ids = "";
if(document.all.s!==undefined){
if(document.all.s.length==undefined){
if(document.all.s.checked){
ids = document.all.s.value;
}
}else{
for(var i=0;i<document.all.s.length;i++){
if(document.all.s[i].checked){
ids = ids + document.all.s[i].value + ",";
}else{
ids = ids + "0"+ ",";
}
}
ids = ids.substr(0,ids.length-1);
}
}
return ids;
}
String[] checkbox=request.getParameterValues("checkbox");
String aaa="";
for(i=0;i <checkbox.length;i++){
if(checkbox!=null&&!"".equals(checkbox)){
aaa += checkbox[i] + "^";
}else{
aaa += O+ "^";
}
}