1.+=
let x =15;
x += 10 ;//x = x + 10 = 25;
2.*=
let x =15;
x *= 10 ;//x = x * 10 = 150
3.++
let x =15;
x ++ ;//x = x + 1 = 16
4.–
let x =15;
x -- ;//x = x - 1 = 14
5.运算符的优先级
详细参考mdn中的介绍:https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Operators/Operator_Precedence
原创文章,作者:,如若转载,请注明出处:https://blog.ytso.com/272168.html