Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在通过 JSLint 推动脚本,就像通过食品厂的岩石一样。慢慢地,并且有很多研磨。
我已将所有 i++ 增量器更新为 i+=1。在 ++i 的情况下我应该怎么做,例如 b = ++i ?
Preincrement (++i) adds one to the value of i, then returns i. You get the same effect if you put them on separate lines.
++i
i
i += 1; b = i;