1. 程式人生 > >EasyUI多選的獲取

EasyUI多選的獲取

brush ons color fun span cti open 信息 ()

	function deletePRE() {
			var rows = $(‘#dg‘).datagrid(‘getSelections‘);
		        var ids = [];
		        var other_ids = [];
		        $.each(rows, function(index, item){
		        	var  id=item.id;
		        	var  upload=item.upload;
		        	var  checks=item.checks;
				if(upload==0||upload==1&&checks==3){
					ids.push(id);
				}else{
					other_ids.push(id);
				}
		        }
			);
if(ids == "" ||ids == null ){ url=""; $.messager.alert(‘系統提示‘, ‘請選擇可以刪除的記錄!‘, ‘error‘); }else { url="${path}/manifest/premanifestCheckDelete.do?ids="+ids; $("#dlg_delete").dialog("open").dialog("setTitle", "刪除這條信息!"); } }

  

EasyUI多選的獲取