i++在后面

    var i = 1;
do{

    console.log(i);
    i++;

}
while(i <= 10);


2023-06-26T13:38:00.png

i++在前面

    var i = 1;
do{

    i++;
    console.log(i);

}
while(i <= 10);



2023-06-26T13:38:40.png