Neo's Blog
Share knowledge with the world
摘要: 1,ready 函数,类似于onload ,但是可以多次加载和使用, 只要加载完dom模型就会自动触发,不会等待其他元素加载完毕$(function(){...}); 等于 $(document).ready(function(){...});2, $.map(array,fn) 对数组中俄每个元素进行处理,将结果返回一个新数组var arr=[3,6,9];var arr2=$.map(arr,function(item){return item*2});3, $.each(array,fn) 处理每个元素,但不返回一个新数组var arr={"Tom":23," 阅读全文
posted @ 2011-05-30 08:27 Neo_Guo 阅读(305) 评论(0) 推荐(0) 编辑