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

|=

Returns the value of the first item one in each bit position for which the corresponding bits of either or both operands are ones, and assigns the new value to the first item.

Syntax

valueA |= valueB

Example

Remarks

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