how do an infinite loop in javascript

前端 未结 3 438
再見小時候
再見小時候 2021-01-29 16:33

Im trying to do an infinite loop using while between 0 to 100 and 100 to 0, but the browser crashes. There is a way to clear the browser memory? This is my code:



        
3条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-29 16:41

    There is a way to clear the browser memory?

    Yes. Virtually all browsers have a little icon somewhere that looks very similar to this:

    This is called the "refresh". If you use this it will "clear the browser memory".

提交回复
热议问题