Bootstrap导航栏在多个页面中 [英] Bootstrap Navbar in multiple pages
本文介绍了Bootstrap导航栏在多个页面中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有关自举导航栏的问题。
我将导航栏代码放在每个页面中,还是应该将导航栏代码放在一个文件中并在所有页面中访问?
你的问题实际上并不是一个关于引导的问题。
由于你使用bootstrap,你必须使用jQuery。您可以使用 load()
这是ajax的一个功能。
Having a problem regarding bootstrap navbar.
I am placing the navbar code in every page or should I place the navbar code in a single file and access it in all pages?
解决方案
Your question actually does not a question about bootstrap.
Since you are using the bootstrap, you must be using jQuery. You can use load()
which is a function of ajax to do this.
You can get the detail of the API here .load() | jQuery API Documentation
这篇关于Bootstrap导航栏在多个页面中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文