i++和++i

1 var a=1;
2 var b=a++;//b=1,先赋值再自增
3 
4 var a=1;
5 var c=++a;//c=2,先自增再赋值
原文地址:https://www.cnblogs.com/flyover/p/14103453.html