easyui checkbox 取值

$('#ButonGetCheck').click(function(){
30. var checkedItems = $('#dg').datagrid('getChecked');
31. var names = [];
32. $.each(checkedItems, function(index, item){
33. names.push(item.productname);
34. });               
35. console.log(names.join(","));
36. });

你可能感兴趣的:(easyui checkbox 取值)