CSS魔法
CSS魔法
# API 文档 - `template` 模块 本项目的 `template` 模块由 [Underscore-template](https://github.com/cssmagic/underscore-template) 类库实现,详细功能说明请参见该类库的 [API 文档](https://github.com/cssmagic/underscore-template/issues/5) 和 [wiki](https://github.com/cssmagic/underscore-template/wiki)。 需要注意的是,所有 JavaScript API 均挂接在 `gearbox.template` 命名空间下。比如: - `template.add()` → `gearbox.template.add()` - `template.render()` → `gearbox.template.render()` -...
# API 文档 - `action` 模块 本项目的 `action` 模块由 [Action](https://github.com/cssmagic/action) 类库实现,详细功能说明请参见该类库的 [API 文档](https://github.com/cssmagic/action/issues/9) 和 [wiki](https://github.com/cssmagic/action/wiki)。 需要注意的是,所有 JavaScript API 均挂接在 `gearbox.action` 命名空间下。比如: - `action.add()` → `gearbox.action.add()` - `action.trigger()` → `gearbox.action.trigger()` -...
包括: - [x] 浏览器名称 - [ ] 浏览器版本 - [x] 引擎(浏览器内核)名称 - [x] 引擎(浏览器内核)版本
至少需要能处理以下两种图片资源: - 特定图片资源通过生成隐藏的 `` 标签来加载。 - 对于背景图片,通过生成对应的结构来加载(比如 [CMUI Loading 组件](http://cmui.net/demo/v1/theme/baixing/loading.php) 的 loading 动画图片)。
(感谢 @hax 提出此建议。) 具体怎么实现我还不知道,欢迎 PR。
# API 文档 ## JavaScript 接口 ### `historyState.isSupported()` 判断当前环境是否支持通过 `history.state` 属性获取当前 state。 这是一个非常重要的方法,如果你的业务需要使用 `history.state` 特性,务必先使用此方法探测其是否可用。 #### 参数 (无) #### 返回值 布尔值。 #### 示例 ``` js // 在 iOS...
## 3.6 Examples of creating good functions with Copilot ## 3.6 借助 Copilot 创建优秀函数的几个例子 In this section, we’re going to write a bunch of functions with Copilot. We’ll code them...
## Summary ## 本章小结 * Problem decomposition involves breaking a large problem into smaller tasks. * We use functions to perform problem decomposition in our programs. * Each function must...