本文档基于 CC协议(Creative Commons Share-Alike License)发布,是developer.mozilla.com, www.mozref.comwww.aptana.com共同劳动的成果。

++

Increments the value of a number by 1.

Syntax

number++ or ++number

Example

var myNumber = 3;
myNumber++;
// myNumber = 4;

Remarks

Use the increment operator as a counter and to loop through values in an array or similar object.