#pragma mark 创建数组 //1.通过对象方法创建数组 NSArray * array = [[NSArray alloc]initWithObjects:@"One",@"Two",@"Three",@"Four",@"Five", nil]; // NSLog(@"%@",array) ...
分类:
移动开发 时间:
2016-09-23 18:12:19
阅读次数:
188
NSArray * array = @[@"1",@"2",@"3"]; NSLog(@"%@",array); //1.for循环 //2.while do-while for(int i = 0;i<[array count];i++){ NSString * str = array[i]; N ...
分类:
移动开发 时间:
2016-09-23 18:10:52
阅读次数:
175
["1","2","3"].map(function (){ console.log(arguments) }) ["1", 0, Array[3]] ["2", 1, Array[3]] ["3", 2, Array[3]] 然后看 parseInt parseInt(string, radix) ...
分类:
其他好文 时间:
2016-09-23 18:06:40
阅读次数:
117
1. lambda 1. 基本形式: 函数名=lambda args1,args2,...,argsn:expression与C语言中的宏定义类似 2. Code 2. filter 1. 基本形式 ans=filter(function,array)相当于一个过滤函数,这里的function的返回 ...
分类:
移动开发 时间:
2016-09-23 16:26:36
阅读次数:
226
/**
*Saveanewmodelandattachittotheparentmodel.
*
*@param\Illuminate\Database\Eloquent\Model$model
*@paramarray$joining
*@parambool$touch
*@return\Illuminate\Database\Eloquent\Model
*/
publicfunctionsave(Model$model,array$joining=[],$touch=true)
//publicfunc..
分类:
Web程序 时间:
2016-09-23 15:20:23
阅读次数:
280
Minimum Size Subarray Sum** Given an array of n positive integers and a positive integer s, find the minimal length of a subarray of which the sum ≥ s ...
分类:
其他好文 时间:
2016-09-23 13:04:54
阅读次数:
119