Increments the value of a number by 1.
Syntax
number++ or ++numberExample
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.
本文档基于 CC协议(Creative Commons Share-Alike License)发布,是developer.mozilla.com, www.mozref.com和www.aptana.com共同劳动的成果。