Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是前端编程的新手。我写了一个 java servlet,我想通过单击我用 twitter bootstrap 构建的下拉菜单的声音来调用它的 get 方法。这个包含在导航栏中。有人可以解释怎么做吗?
在不刷新页面的情况下链接前端是使用 AJAX 完成的。
首先,我建议您查看 javascript AJAx 教程
http://www.w3schools.com/ajax/ajax_intro.asp
接下来,在您对 AJAX 的工作原理有了一些了解之后,使用 jquery 来
使用 AJAX 并与您的后端 servlet 进行通信。