说明
自加+ + |
[c gutter=”0″]i++; //相当于 i = i + 1; [/c]
|
自减—— |
[c gutter=”0″]i–; //相当于 i = i – 1; [/c]
|
复合加+= |
[c gutter=”0″]i+=5; //相当于 i = i + 5;[/c]
|
复合减-= |
[c gutter=”0″]i-=5; //相当于 i = i – 5;[/c]
|
复合乘*= |
[c gutter=”0″]i*=5; //相当于 i = i * 5;[/c]
|
复合除/= |
[c gutter=”0″]i/=5; //相当于 i = i / 5;[/c]
|
复合与&= |
[c gutter=”0″]i&=5; //相当于 i = i & 5;[/c]
|
复合或|= |
[c gutter=”0″]i|=5; //相当于 i = i | 5;[/c]
|