余数赋值 (%=)
余数赋值 (%=
) 运算符对两个操作数执行 remainder 并将结果赋给左侧操作数。
¥The remainder assignment (%=
) operator performs remainder on the two operands and assigns the result to the left operand.
Try it
语法
描述
示例
使用余数赋值
规范
Specification |
---|
ECMAScript Language Specification # sec-assignment-operators |
浏览器兼容性
BCD tables only load in the browser
也可以看看
¥See also