paul_cheung

导航

08 2013 档案

readonly and const variable
摘要:共同点:都是常量;不同点:const的值必须在编译前确定,通常在声明的同时赋值;而readonly可在运行时确定; 阅读全文

posted @ 2013-08-26 11:41 paul_cheung 阅读(157) 评论(0) 推荐(0)

css round corner div and transition
摘要:圆角风格的tag,css中属性渐变效果 阅读全文

posted @ 2013-08-13 15:38 paul_cheung 阅读(278) 评论(0) 推荐(0)

TypeScript简单的代码片段
摘要:typescript中接口的定义和实现,重载函数的实现;类的定义和继承;module的定义和使用。有对应javascript代码 阅读全文

posted @ 2013-08-02 17:35 paul_cheung 阅读(501) 评论(0) 推荐(0)

Modular JavaScript[AMD and CommonJS]入门
摘要:原文链接:http://addyosmani.com/writing-modular-js/Modularity当说到一个应用是模块化的,意思是说它是由一系列耦合度很低、有明确功能的模块所组成。松耦合通过尽可能移除依赖(by removing dependencies)使Apps维护起来更方便;这里介绍三种书写模块化javascript的方法:AMD, CommonJS, Harmony(proposals for the next version of javascript);序:实现模块化的基本方法就是使用script loaders(推荐RequireJS和curl.js)。从产品发布的 阅读全文

posted @ 2013-08-02 16:52 paul_cheung 阅读(524) 评论(0) 推荐(0)