摘要:
//获取所有name='id'、被选择的的多选框var idArr = $("input[type='checkbox'][name='id']:checked");//将这些多选框的id值(实际上是个数组)组合成以‘,’分隔的字符串var ids = "";$.each(idArr,function(index,o){ ids = ids + $(o).val()+",";});ids = ... 阅读全文
摘要:
Integer[] arr = {1,2,3,4,5}; String str = ""; for (Integer i : arr) { str += i+","; } str = str.substring(0,str.length()-1); System.out.println(str); 阅读全文