简体   繁体   English

href =“ #_ self”是什么意思?

[英]What does href=“#_self” mean?

I've seen this here and there, but can't find any information regarding this "thing". 我已经在这里和那里看到了,但是找不到有关此“事物”的任何信息。 Can anyone please provide us some sort of info regarding the #_self propose ? 任何人都可以向我们提供有关#_self建议的某种信息吗?

<a href="#_self"> will jump to an element with the id of _self in the current page. <a href="#_self">将跳到当前页面中ID为_self的元素。

For instance, further below the page, there's a <p> element that looks like this: 例如,在页面的下方,有一个<p>元素,看起来像这样:

<p id="_self"> ... </p>

It's pretty weird to have an ID with that name though, so probably a decoy anchor link for a jQuery function. 虽然有一个具有该名称的ID很奇怪,所以可能是jQuery函数的诱饵锚链接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM