|
|
Compass
Compass is an open-source CSS Authoring Framework.
Compass uses Sass.
避免调用 console 相关方法在 IE6/7 等不支持的浏览器下报错
来自 HTML Boilerplate 前端框架的方法。
原理很简单:
判断 console 对象是否存在,不存在则新建:
1var console = (window.console = window.console || {});定义包含 console 对象方法名称的数组。迭代数组,判断 console 对象是否具有对应的方法,如果方法不存在,在 console 对象上新建此方法,并赋值空函数。
123if (!console[method]) {console[method] = function() {};};
完整的代码:
|
|
Using delegate with hover in jQuery
|
|
Mateor
Meteor is an ultra-simple environment for building modern web applications.
With Meteor you write apps:
- in pure Javascript
- that send data over the wire, rather than HTML
- using your choice of popular open-source libraries