$.messager.confirm('确认','确认删除?',function(ok){ if(ok){ for(var i=0;i<rows.length;i++){ var index = $("#accountInfo").datagrid('getRowIndex',rows[i]); //对未保存数据库的记录删除采用移除方法 $("#accountInfo").datagrid('deleteRow',index); $('#accountInfo').datagrid('selectAll'); } } });
function()中没有r 则直接调用里面的方法
jQuery.messager.alert(CONFIRM, MSG_611, WARN, function() { closePageforNew("1001", "审批流程", obj.prd_no); });
$.messager.confirm('确认对话框', '您想要退出该系统吗?', function(r){ if (r){ // 退出操作; } });