<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_Cauma_分类_淘宝KISSY分析</title><id>http://feed.cnblogs.com/blog/u/40693/category/249627/rss</id><updated>2012-05-29T22:34:13Z</updated><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/bluedream2009/category/249627.html"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/40693/category/249627/rss"/><entry><id>http://www.cnblogs.com/bluedream2009/archive/2010/06/15/1758787.html</id><title type="text">淘宝Kissy框架分析【六】</title><summary type="text">现在开始分析kissy-ua.js 浏览器检测部分.源码如下:[代码]这里不会源码做剖析,因为都是比较容易理解. 但现在对于UA浏览器嗅探和特性检测(如jQuery)的孰优孰劣.我认为都有其合适的应用场景.看自己的需求吧.如果需要特性检测可以参考jQuery源码.用法:[代码]如果是目标浏览器那么会返回该浏览器的版本号.如果不是那么就返回0。比如.你想检测浏览器是不是IE并且是IE8 就可以写 J...</summary><published>2010-06-15T13:11:00Z</published><updated>2010-06-15T13:11:00Z</updated><author><name>BlueDream</name><uri>http://www.cnblogs.com/bluedream2009/</uri></author><link rel="alternate" href="http://www.cnblogs.com/bluedream2009/archive/2010/06/15/1758787.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/bluedream2009/archive/2010/06/15/1758787.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/bluedream2009/archive/2010/06/15/1758627.html</id><title type="text">淘宝Kissy框架分析【五】</title><summary type="text">继续分析kissy-lang.js8.makeArray函数作用:转化类数组对象为真实的数组.原理:主要需要处理的就是将NodeList转化成真实的数组. 在非IE浏览器都可以通过Array.prototype.slice.call(NodeList)来直接转换.但IE却不支持. 所以IE下只能降级到普通的方法转换.测试用例:[代码]9.filter函数作用:通过回调函数的条件过滤数组项.测试用例...</summary><published>2010-06-15T06:45:00Z</published><updated>2010-06-15T06:45:00Z</updated><author><name>BlueDream</name><uri>http://www.cnblogs.com/bluedream2009/</uri></author><link rel="alternate" href="http://www.cnblogs.com/bluedream2009/archive/2010/06/15/1758627.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/bluedream2009/archive/2010/06/15/1758627.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/bluedream2009/archive/2010/06/15/1758566.html</id><title type="text">淘宝Kissy框架分析【四】</title><summary type="text">今天开始分析kissy-lang.js源码如下:[代码]1.isBoolean, isString, isNumber, isArray, isFunction类型判断函数类型判断函数没啥可说基本类型可以用typeof 复制类型使用Object.prototype.toString.call()来监测.注意:(1).isNumber 如果是infinity或NaN应该返回false. 所以加了is...</summary><published>2010-06-15T04:00:00Z</published><updated>2010-06-15T04:00:00Z</updated><author><name>BlueDream</name><uri>http://www.cnblogs.com/bluedream2009/</uri></author><link rel="alternate" href="http://www.cnblogs.com/bluedream2009/archive/2010/06/15/1758566.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/bluedream2009/archive/2010/06/15/1758566.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/bluedream2009/archive/2010/06/12/1757425.html</id><title type="text">淘宝Kissy框架分析【三】</title><summary type="text">继续分析kissy.js6.extend函数作用: 这个extend函数是kissy框架面向对象的核心.实现了继承机制.kissy的继承使用了 对象冒充 + 原型继承的混合模式.原理:[代码]测试用例:[代码]7.namespace函数作用: 建立命名空间. 如果该命名空间存在则直接引用.不覆盖. * S.namespace('KISSY.app'); // returns KISSY.app *...</summary><published>2010-06-12T14:35:00Z</published><updated>2010-06-12T14:35:00Z</updated><author><name>BlueDream</name><uri>http://www.cnblogs.com/bluedream2009/</uri></author><link rel="alternate" href="http://www.cnblogs.com/bluedream2009/archive/2010/06/12/1757425.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/bluedream2009/archive/2010/06/12/1757425.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/bluedream2009/archive/2010/06/10/1755923.html</id><title type="text">淘宝Kissy框架分析【二】</title><summary type="text">首先,让我们从kissy核心文件夹开始. 第一个文件kissy.js也是主架构文件.源码如下:[代码]首先整个函数通过简单的闭包机制实现了沙箱.然后将win[J]暴露给全局.所以我们就可以J1616.xx引用属性了.1. mix函数作用:将s的属性拷贝给r. ov(默认为true)为true则属性覆盖,为false则不覆盖. wl如果定义了.那么只有当s中含有wl定义的属性才会进行属性拷贝.测试用...</summary><published>2010-06-10T14:25:00Z</published><updated>2010-06-10T14:25:00Z</updated><author><name>BlueDream</name><uri>http://www.cnblogs.com/bluedream2009/</uri></author><link rel="alternate" href="http://www.cnblogs.com/bluedream2009/archive/2010/06/10/1755923.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/bluedream2009/archive/2010/06/10/1755923.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/bluedream2009/archive/2010/06/09/1755105.html</id><title type="text">淘宝Kissy框架分析【一】</title><summary type="text">浮躁的时候总需要找点事情去压制一下自己的恐惧心理.正好赶上淘宝Kissy发展在雏形期,便于分解和学习.就花费一段时间来研究一下Kissy的源码.那么先让我们看一下目前整个kissy的架构.然后展开来一点点学习.那么明天我们将进行的是kissy.js的分解学习</summary><published>2010-06-09T14:15:00Z</published><updated>2010-06-09T14:15:00Z</updated><author><name>BlueDream</name><uri>http://www.cnblogs.com/bluedream2009/</uri></author><link rel="alternate" href="http://www.cnblogs.com/bluedream2009/archive/2010/06/09/1755105.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/bluedream2009/archive/2010/06/09/1755105.html"/><content type="html"/></entry></feed>
