莫回无
这个问题的核心在于同样的A标签,如何获取其唯一标识!在不改变A标签的情况下:1,获取A标签内容。$('ul').on('click','a',function(){varvalue=$(this).text();$.post('url',{value:value},function(response){console.log(response);});});2,获取A标签index。$('ul').on('click','a',function(){varvalue=$(this).closest('li').index();$.post('url',{value:value},function(response){console.log(response);});});