javascript - Why does the output 1 disappear immediately when the Google console outputs 1?
天蓬老师
天蓬老师 2017-06-30 09:52:27
0
4
753


can also output 1, but 1 will be gone soon

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(4)
阿神

According to your description, it is probably because after clicking .navList, it jumps to other pages or refreshes the current page. If the page is reloaded, the log printed by console.log() on the previous page will be cleared. If you want to keep the log of the previous page, please check Preserve Log in the console.

Take Chrome as an example. The new version of Chrome needs to be opened from the right and then checked (as shown in the picture). The old version is directly on the control bar.

过去多啦不再A梦

[√] Preserve log

某草草

Like the picture on the second floor, check “Preserve log” to preserve the request log

淡淡烟草味

Thank you everyone, everything you said is right. I did not prohibit the jump of connection a, so I refreshed the page

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template