------------------------------------------------ ------------------------------------
If it is a #, there will be a jump To reach the top situation, several solutions from personal collection:
1: 2: 3: 4: 5:(好像在FF中不能显示)
Copy after login
-------------------------- -------------------------------------------------- --
Use JavaScript with caution:void(0)
void is an operator in JavaScript, which specifies that an expression should be calculated but does not return a value.
expression is a JavaScript standard expression to be evaluated. The parentheses outside the expression are optional, but it is a good habit to write them using the void operation. specifies a hyperlink. The expression will be evaluated but nothing will be loaded into the current document. The code below creates a hyperlink and nothing will happen when the user clicks the link. void(0 ) is calculated as 0, but has no effect on JavaScript
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn