$(function(){})和$(document).ready(function(){}) 的用法
摘要:
当文档载入完毕就执行,以下几种效果是等价的:1. $(function(){ //这个就是jQuery ready()的简写,即下2的简写 // do something }); 2. $(document).ready(function(){ //do something }) 3. $().re 阅读全文
posted @ 2016-06-19 11:46 CuriousZero 阅读(1203) 评论(0) 推荐(0)
浙公网安备 33010602011771号