反选:
for ( var i = 0, l = inputs.length; i < l; i += 1 ) inputs[ i ].checked = !inputs[ i ].checked;
不必用三元。