学习jQuery必须知道常用的几种方法
摘要: 转载:http://sd.csdn.net/a/20110117/290282.htmljQuery事件处理ready(fn)Js代码1. $(document).ready(function(){ 2. // Your code here... 3. }); $(document).ready(function(){// Your code here...});作用:它可以极大地提高web应用程序的响应速度。通过使用这个方法,可以在DOM载入就绪能够读取并操纵时立即调用你所绑定的函数,而99.99%的JavaScript函数都需要在那一刻执行。bind(type,[data],fn)Js代码阅读全文
posted @ 2011-02-18 11:18 matchcolor 阅读(55) | 评论 (0) 编辑
