比如:
http://localhost:8080/Test/admin/indexAction如何在jsp页面中获得 admin/indexAction因为有些jquery的插件,menu的隐藏和显示,它必须有一个<a href="#">栏目名</a>,但是jsp一点就变成了http://localhost:8080/Test/# 这样的地址虽然可以这样写<a href="admin/indexAction#">栏目名</a> 但是复用起来比较麻烦,所以想请教下各位,谢谢!!~
http://localhost:8080/Test/admin/indexAction如何在jsp页面中获得 admin/indexAction因为有些jquery的插件,menu的隐藏和显示,它必须有一个<a href="#">栏目名</a>,但是jsp一点就变成了http://localhost:8080/Test/# 这样的地址虽然可以这样写<a href="admin/indexAction#">栏目名</a> 但是复用起来比较麻烦,所以想请教下各位,谢谢!!~
<a href="#">
用这种
<a href="javascript:void(0)" id="button">
然后用jquery在js中绑定点击操作
$('#button').click(function() {...});