Why does my function while loop go from 5,4,3,2,1 in console but 1,2,3,4,5 in the web page

前端 未结 0 1570
悲哀的现实
悲哀的现实 2020-12-09 05:29

So, i have this js code:

function lFunc(){

    var loopCount = 5;

    while(loopCount > 0) {

        var target = document.getElementById("p3"         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题