递增和递减运算符 前置运算符 <script> //前置运算符 先加,在返回值 var num = 1; ++num; //num = num +1; console.log(num); </script> 后置运算符 先用,在加 var num = 10; ++ num; //num = num +1; console.log(num