<ul id = "list-unstyled">
    <li>aaa</li>
    <li>bbb</li>
    <li>ccc</li>    
</ul>


$('#list-unstyled').on('click','li',function(){
    alert($(this).text());
})

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-01
  • 2022-02-07
  • 2021-09-13
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案