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代码如何解读啊