jquery加载页面的方法(页面加载完成就执行),建议大家看下windows.onload与$(document).ready之间的区别。
 

1、$(function(){
  $("#a").click(function(){
    //adding your code here
  });
});
2、$(document).ready(function(){
  $("#a").click(function(){
    //adding your code here  
  });
});
3、window.onload = function(){
  $("#a").click(function(){
    //adding your code here
  });
}
html代码为<input type="button" );
});

相关文章:

  • 2022-12-23
  • 2022-02-07
  • 2021-12-18
  • 2021-08-12
  • 2021-07-27
  • 2021-08-15
  • 2021-12-18
  • 2021-06-13
猜你喜欢
  • 2022-01-25
  • 2021-11-04
  • 2022-12-23
  • 2021-12-28
  • 2022-12-23
相关资源
相似解决方案