$(function(){

   $("#myMessage li").each(function(){
         $(this).click(function(){ //这个this是一个数组
         alert($(this).html()); //这个this是当前对象
     })

})

相关文章:

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