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

*=

Multiples the value of the first item by the second item and assigns the total to the first item as a new value.

Syntax

valueA *= valueB

Example

var foo = 7;
var bar = 3;
foo *= bar; //now foo = 21;

Remarks

"valueA *= valueB" is shorthand for "valueA = valueA * valueB".