官方文档中有详细的文字说明,不过最好还是实践下,熟悉过程。http://developer.android.com/guide/components/fragments.html 一、Activity的生命周期图: 二、Fragment生命周期图 三、对比图 Test code: import an
分类:
其他好文 时间:
2016-02-08 13:32:59
阅读次数:
296
Oracle数据访问组件 (ODAC) 全称:Oracle Data Access Components 优点:由于微软在.net framework4中会将System.Data.OracleClient.dll deprecated,而且就访问效率和速度而言,System.Data.Oracle
分类:
数据库 时间:
2016-02-03 14:33:03
阅读次数:
511
Learn how to avoid the boilerplate of passing the props down the intermediate components by introducing more container components. Code to be refactor
分类:
其他好文 时间:
2016-01-29 20:00:43
阅读次数:
208
UI Automator Viewer The uiautomatorviewer tool provides a convenient GUI to scan and analyze the UI components currently displayed on an Android devic
分类:
其他好文 时间:
2016-01-28 21:05:23
阅读次数:
304
一、概述 当你通过和另外一个组件组合的时候,组件就会真正发挥它们的所有潜能。比如<ul>元素,只有<li>元素是适合作为它的子元素的。如果我们希望同样类型的行为,那么我们就必须组合组件。 就像我们组合HTML元素一样,我们可以以同样的方式用于组件。 app/templates/application
分类:
其他好文 时间:
2016-01-28 12:14:03
阅读次数:
138
一、概述 1. 当一个组件在模板中被使用时,它具有发送action到这个模板的controller和routes的能力。这些允许组件通知application当重大事件发生的时候,比如点击组件一个特殊的元素。 2. 像{{action}}Handlebars辅助器,来自组件的actions首先会去到
分类:
移动开发 时间:
2016-01-28 00:41:39
阅读次数:
265
Finally, I just noticed that the to-do app component doesn't actually have to be a class. I can turn it into a function. I prefer to-do that when poss
分类:
移动开发 时间:
2016-01-27 21:24:08
阅读次数:
269
Code to be refactored: let nextTodoId = 0; class TodoApp extends Component { render() { const { todos, visibilityFilter } = this.props; const visibleT
分类:
其他好文 时间:
2016-01-27 21:07:10
阅读次数:
197
The code to be refactored: let nextTodoId = 0; class TodoApp extends Component { render() { const { todos, visibilityFilter } = this.props; const visi
分类:
其他好文 时间:
2016-01-27 19:39:58
阅读次数:
134
一、概述 默认的,每一个组件都基于一个<div>元素。如果你在你的开发者工具中查看一个渲染的组件,你将会看到一个像这样的DOM表示: <div id="ember180" class="ember-view"> <h1>My Component</h1> </div> 你可以为你的组件自定义Embe
分类:
其他好文 时间:
2016-01-27 19:29:26
阅读次数:
142