求jQuery grid大神啊~~~~~~~~~~~~~~~~~~~~~~~~~~

 function() {
  if (this.checked) {
    b("[id^=jqg_" + a.p.id + "_]").attr("checked", "checked");
    b(a.rows).each(function(d) {
      if (d > 0)
        if (!b(this).hasClass("subgrid") && !b(this).hasClass("jqgroup")) {
          b(this).addClass("ui-state-highlight").attr("aria-selected",
            "true");
          a.p.selarrrow.push(this.id);
          a.p.selrow = this.id
        }
    });
    ua = true;
    za = []
  } else {
    b("[id^=jqg_" + a.p.id + "_]").removeAttr("checked");
    b(a.rows).each(function(d) {
      if (d > 0)
        if (!b(this).hasClass("subgrid")) {
          b(this).removeClass("ui-state-highlight").attr("aria-selected", "false");
          za.push(this.id)
        }
    });
    a.p.selarrrow = [];
    a.p.selrow = null;
    ua = false
  } if (b.isFunction(a.p.onSelectAll)) a.p.onSelectAll.call(a, ua ? a.p.selarrrow : za, ua)
}

这段js代码如何解读啊

看代码是设置grid数据行对象的全选/取消权限功能的,b应该是jquery的别名,其他语法就是jquery了,会jquery应该不难理解