i++是在使用當前值之後再+1,所以需要一個臨時的變量來轉存。而++i則是在直接+1,省去了對內存的操作的環節,相對而言能夠提高性能.
Ref:
https://www.cnblogs.com/Paul-Yellow/p/10900475.html
https://www.jianshu.com/p/dd35ffcf6c08
{"type":"doc","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"typ
{"type":"doc","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragr
{"type":"doc","content":[{"type":"blockquote","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null