javascript jquery 面包屑路径示例或教程?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/15213612/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
jquery breadcrumbs trail examples or Tutorial?
提问by inputError
I am suppose to make a breadcrumb trail with jquery as my website has nested pages? I am unknown to breadcrumb and how it works if i want to add breadcrumbs dynamically to web pages? any help or tutorial links would help
由于我的网站有嵌套页面,我想用 jquery 制作面包屑路径吗?我不知道面包屑,如果我想动态地将面包屑添加到网页,它是如何工作的?任何帮助或教程链接都会有所帮助
for ex: i have homepage and products page and also each product has its specific page so when i go to product pages child my breadcrumb should show something like
例如:我有主页和产品页面,而且每个产品都有其特定的页面,所以当我转到产品页面时,我的面包屑应该显示类似
Home / Product / currentpage
首页 / 产品 / 当前页面
I want it to add dynamically to each page the user navigates
我希望它动态添加到用户浏览的每个页面
回答by GoaKoala
First of all, Wikipediahas a good explanation on Breadcrumbs.
首先,维基百科对 Breadcrumbs 有很好的解释。
I recommend jBreadCrumb-- it's a jQuery breadcrumb plugin. And here's a list of a few morejQuery breadcrumb plugins.
我推荐jBreadCrumb——它是一个 jQuery 面包屑插件。这是一些更多jQuery 面包屑插件的列表。
Hope these helps.
希望这些有帮助。