随笔分类 -  Google Closure Library

摘要:8.4% of all hangs in IE9 in the past month are caused by XMLHttpRequest objects blocking the UI thread with a synchronous request.难怪 ClosureLib 不支持同步方式的调用,远程模版调用还是只有用异步的方式进行了。 阅读全文

posted @ 2012-06-03 10:36 沙加 阅读(338) 评论(0) 推荐(0)

摘要:要高效使用google的这个库需要正确理解它的Component模型,总的说来Component是这个库中所有控件和组件的基础类,有点象asp.net中的control这个基类,它定义了一个组件的生命周期过程规范和一些可覆写的方法。一个组件在生命周期中大致会经过如下几个阶段:组件实例创建。构造dom元素,这步又可以通过两种方式来实现:完全创建法和冒充法(decorate).事件绑定。页面关闭事件回... 阅读全文

posted @ 2010-10-14 11:09 沙加 阅读(799) 评论(0) 推荐(0)

摘要:尝试了N多次之后俺终于放弃使用Google Closure Compiler 来编译Mootools 了,原因很简单,Google Closure 不能混合使用[""] 与 . 的属性访问方式,导致部分代码在混淆之后不可使用。Standard flags: --help describes all flags --helpshort describes the main class' flags ... 阅读全文

posted @ 2009-12-22 17:08 沙加 阅读(3624) 评论(0) 推荐(1)

导航