$('#stage_intro_list').on('click','.stage_intro', function (e) {
            console.log(e);
            console.log(this)
            var id = $(this).attr('id');

            console.log(id);
        })
    <div from-data="stage_intro" id="stage_intro_list">

 <h3 class="stage_intro" >{{stage_name}}</label></a></h3>
</div>

onclick 事件,获取当前块id

 

 点击当前元素,获取当前元素的属性id

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
  • 2022-02-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-19
  • 2022-02-07
  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
  • 2021-07-02
相关资源
相似解决方案