1.单一职责原则(srp):就是设计一个对象,对象的职责要单一.比如设计用户类,将用户的行为和用户的属性分成两个接口,继承的方式设计类.还有一个srp的解释是:there is no more than one reason for a class to change但srp的原则有可能把握的过细,...
分类:
其他好文 时间:
2014-06-28 13:57:06
阅读次数:
205
重新想象 Windows 8.1 Store Apps 之控件增强: WebView 的基本应用, WebView 通过 POST 请求和 HTTP 头加载 url, WebView 与 JavaScript 交互
分类:
移动开发 时间:
2014-06-28 13:34:23
阅读次数:
331
ANGULAR js POST 数据的时候,默认是发送JSON数据到服务端的。var params={defId:"1234"};$http.post(url,params).success(function(data, status, headers, config){ ...
分类:
Web程序 时间:
2014-06-28 13:06:08
阅读次数:
248
/* * Created by SharpDevelop. * User: Administrator * Date: 2013/11/18 * Time: 20:55 * * To change this template use Tools | Options | Coding | Edit ....
分类:
其他好文 时间:
2014-06-28 12:34:14
阅读次数:
466
一。onConfigurationChanged 与android:configChangesLists configuration changes that the activity will handle itself. When a configuration change occurs at...
分类:
其他好文 时间:
2014-06-28 12:15:22
阅读次数:
207
Handler的使用常用方法post(Runnable runnable) 启动线程removeCallbacks(Runnable runnable) 取消线程postDelayed(Runnable runnable,int time) 延时启动线程例、应用启动的欢迎界面XML首先是wel...
分类:
其他好文 时间:
2014-06-28 10:57:46
阅读次数:
296
io_service的作用io_servie实现了一个任务队列,这里的任务就是void(void)的函数。Io_servie最常用的两个接口是post和run,post向任务队列中投递任务,run是执行队列中的任务,直到全部执行完毕,并且run可以被N个线程调用。Io_service是完全线程安全的...
分类:
其他好文 时间:
2014-06-24 10:48:03
阅读次数:
212
构造函数构造函数的主要动作就是调用CreateIoCompletionPort创建了一个初始iocp。Dispatch和post的区别Post一定是PostQueuedCompletionStatus并且在GetQueuedCompletionStatus 之后执行。Dispatch会首先检查当前t...
分类:
其他好文 时间:
2014-06-24 09:24:40
阅读次数:
156
在学习makefile的时候涉及到修改时间,对于mtime,ctime,atime三个时间之间有啥区别呢??atime - access time mtime - if modify timectime - of change timels -luTo view ctimels -lcTo vi.....
分类:
其他好文 时间:
2014-06-23 07:58:14
阅读次数:
246
http://blog.scottlowe.org/2012/10/19/link-aggregation-and-lacp-with-open-vswitch/ In this post, I’m going to show you how to use link aggregation (via...
分类:
其他好文 时间:
2014-06-21 14:18:10
阅读次数:
302