/**
?*?Appends?the?specified?element?to?the?end?of?this?list.
?*
?*?@param?e?element?to?be?appended?to?this?list
?*?@return?<tt>true</tt>?(as?specified?by?{@link?Colle...
分类:
其他好文 时间:
2015-02-04 23:34:34
阅读次数:
427
需求分析六个点: 1.这是那一部分的业务(发货/收货/库存)Where; 2.描述的哪一个粒度,订单,订单行项目,发货明细...业务的操作是哪一个级别的?(比如调拨和WAS单是一个级别,这意味着在操作流程彼此不干扰)Which; 3.操作的闭环是什么?End; 4.产生的数据后续如何来被使用?Eff...
分类:
其他好文 时间:
2015-02-04 23:11:16
阅读次数:
199
数组的逆序,只能用于数组,不能用于哈希表
function reverseTable(tab)
local tmp = {}
for i = 1, #tab do
local key = #tab
tmp[i] = table.remove(tab)
end
return tmp
end
// 示例
local t = {"one", "two", "three"}
...
分类:
编程语言 时间:
2015-02-04 21:50:25
阅读次数:
6498
https://oj.leetcode.com/problems/remove-nth-node-from-end-of-list/Given a linked list, remove thenthnode from the end of list and return its head.For ...
分类:
其他好文 时间:
2015-02-04 21:33:04
阅读次数:
136
ng-repeat-start与ng-repeat-end时AngularJS(1.2.x)扩展的,使用这两个指令可以灵活控制遍历形式。例如:index.html {{user.name}} ...
分类:
其他好文 时间:
2015-02-04 20:16:56
阅读次数:
189
// 九宫格 #import "ViewController.h"@interface ViewController ()@property (nonatomic ,strong) NSArray *apps;@end@implementation ViewController- (void)vie...
分类:
其他好文 时间:
2015-02-04 18:19:02
阅读次数:
190
一、什么是NSRunLoop
NSRunLoop是消息机制的处理模式
NSRunLoop的作用在于有事情做的时候使的当前NSRunLoop的线程工作,没有事情做让当前NSRunLoop的线程休眠
NSTimer默认添加到当前NSRunLoop中,也可以手动制定添加到自己新建的NSRunLoop
NSRunLoop就是一直在循环检测,从线程start到线程end,检测inputsource(...
分类:
其他好文 时间:
2015-02-04 11:11:08
阅读次数:
206
#import "ViewController.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad
{
[super viewDidLoad];
//让键盘称为第一响应者(进入当前的界面,键盘就弹出来)
[_textF becomeFir...
分类:
其他好文 时间:
2015-02-04 11:06:52
阅读次数:
128
//委托的协议定义@protocol UpdateDelegate - (void)update;@end@interface Test : NSObject//委托变量定义@property (nonatomic, weak) id delegate;//blocktypedef void (^U...
分类:
移动开发 时间:
2015-02-04 10:37:53
阅读次数:
186
Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the...
分类:
其他好文 时间:
2015-02-04 09:28:15
阅读次数:
110