[英]remove bootstrap 3 tabs href hash name from url
I work with this plugin for bootstrap tabs load remote data using json. 我使用此插件进行引导,使用json加载远程数据。
this worked for me but in action, show tabs href="#callback"
in my url. 这对我有用,但实际上,在我的网址中显示标签href="#callback"
。
http://mydomain/#callback
or http://mydomain/#jsondata
this is bad idea. http://mydomain/#callback
或http://mydomain/#jsondata
这是个坏主意。 I need to remove this hash href
from my url. 我需要从我的网址中删除该hash href
。
I remove href
and replace with #
Or javascript:void(0)
and plugin not work. 我删除了href
并替换为#
或javascript:void(0)
,插件无法正常工作。
how do fix this problem? 如何解决这个问题?
The url is dead, but from what I see in your code, the href says: whatever text is between the ""of the href in the link tag, is the text that will show in the url because that is the div or page or section its linked to. 该网址已失效,但是从我在您的代码中看到的,href表示:链接标记中href的“”之间的任何文本都是将显示在网址中的文本,因为它是div或页面,还是其链接到的部分。 Therefore if you want it changed, then you have to rename the corresponding div and any code related to it. 因此,如果要更改它,则必须重命名相应的div及其相关的任何代码。 If you are using a id to link the div then the hash sign is unavoidable. 如果您使用id链接div,那么哈希符号是不可避免的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.