首页 > 代码库 > window.onload()和$(document).ready()区别

window.onload()和$(document).ready()区别

1 $(window).load(function() {2 $("#btn-upload").click(function(){   //比如说:3  uploadPhotos();4 });5 });