Before the wiki document structure is not very good, and not convenient to retrieve.
So I recently rewritten the document of xmake using docute again.
The Documents:
English Document
Chinese Document继续阅读 »
<< 访问 Wow!Ubuntu
NOTE: This is Simplelified Chinese Edition Document of Markdown Syntax. If you are seeking for English Edition Document. Please refer to [Markdown: Syntax][eng-doc].继续阅读 »
Introduction
The purpose of this document is to give an introduction and overall description of the contribution process for contributors new to Mesos. This document is intended to extend the existing documentation with a focus on on-boarding contributors to the community as quickly as possible.继续阅读 »
中介者模式的作用就是解除对象与对象之间的紧耦合关系。增加一个中介者对象后,所有的相关对象都可以通过中介者对象来通信,而不是相互引用,所以当一个对象发生改变时,只需要通知中介者对象即可。中介者模式使网状的多对多关系变成了相对简单的一对多关系。
中介者模式的例子--购买商品
假如我们正在编写一个手机购买的页面,在购买流程中,可以选择手机的颜色以及输入购买数量,同时页面中有两个展示区域,分别向用户展示选择好的颜色和数量。
show the code:
var colorSelect = document.getElemmentById('colorSelect'),
numberInput= document.getEl继续阅读 »