首页 > 代码库 > 3. easyui 修改功能实例

3. easyui 修改功能实例

function modifyPerson() {
  var rows = $(‘#personInfoGrid‘).datagrid(‘getSelections‘);
  if (rows.length == 0) {
    $.messager.alert("警告", "请选择一条要新增权限的记录!", "warning");
    return;
  } else if (rows.length > 1) {
    $.messager.alert("警告", "每次只能选择一条记录进行修改!", "warning");
    return;
  } else {
    operType = "update";
    showAddOrUpdatePersonAuthModal(rows[0]);
  }
}

3. easyui 修改功能实例