What does “[removed]void(0)” mean?

前端 未结 14 1386
说谎
说谎 2020-11-21 15:23
login

I\'ve seen such hrefs many times, but I don\'t know what exactly

14条回答
  •  春和景丽
    2020-11-21 15:56

    The void operator evaluates the given expression and then returns undefined. It avoids refreshing the page.

提交回复
热议问题