What does it do?The comma operator evaluates both of its operands (from left to right) and returns the value of the second operand. (MDC)var a = (7, 5);a; //5var x, y, zx = (y=1, z=4);x; //4y; //1z; //4Why did you wrap those variable assignments in parentheses?Because of operator precedence. A JavaS Read More
posted @ 2012-04-20 14:40
dushaobin
Views(441)
Comments(0)
Diggs(1)

浙公网安备 33010602011771号