码迷,mamicode.com
首页 >  
搜索关键字:function object    ( 89684个结果
Android activity的生命周期
转自:http://blog.csdn.net/hpoi/article/details/4629065 Android activity的生命周期 activity类处于android.app包中,继承体系如下: 1.java.lang.Object 2.android.content.Conte...
分类:移动开发   时间:2014-05-05 21:51:21    阅读次数:344
GC使用注意
GC.Collect()GC.WaitForPendingFinallizers()GC.KeepAlive尽量不要new很大的Object不要频繁的new生命周期很短的Object,这样会导致很多内存碎片引起频繁的压缩
分类:其他好文   时间:2014-05-05 21:47:03    阅读次数:448
android File存储
文件存储的用途: A File object is suited to reading or writing large amounts of data in start-to-finish order without skipping around. For example, it's good for image files or anything exchanged over a netw...
分类:移动开发   时间:2014-05-05 13:01:21    阅读次数:339
函数的属性length、prototype和方法call()、apply()
函数的属性length、prototype和方法call()、apply() length指的是该函数所期望传递进来的参数个数。 function fun0(){}             //0 function fun1(num1){}         //1 function fun2(num1,num2){}    //2 //prototype function MyObje...
分类:移动开发   时间:2014-05-05 12:55:59    阅读次数:306
集合总结
Collection接口 Collection是最基本的集合接口,一个Collection代表一组Object,即Collection的元素(Elements)。一些 Collection允许相同的元素而另一些不行。一些能排序而另一些不行。Java SDK不提供直接继承自Collection的类,....
分类:其他好文   时间:2014-05-03 23:27:11    阅读次数:350
最实用、最常用的jQuery代码片段
1 // chinacoder.cn JavaScript Document 2 3 $(document).ready(function() { 4 5 //.filter(":not(:has(.selected))") //去掉所有不包含class为.s...
分类:Web程序   时间:2014-05-03 22:23:20    阅读次数:446
Local Functions
int BOOST_LOCAL_FUNCTION(int x, int y) { // Local function. return x + y; } BOOST_LOCAL_FUNCTION_NAME(add) BOOST_TEST(add(1, 2) == 3); // Local function call. int BOOST_LOCAL_FUNCTION(void) ...
分类:其他好文   时间:2014-05-03 21:47:48    阅读次数:332
cf244D. Match & Catch 字符串hash (模板)或 后缀数组。。。
D. Match & Catch 可以用各种方法做,字符串hash,后缀数组,dp,拓展kmp,字典树。。。 字符串hash(模板) http://blog.csdn.net/gdujian0119/article/details/6777239 BKDR Hash Function : // BKDR Hash Function unsigned int BKDRHash(c...
分类:其他好文   时间:2014-05-03 21:20:47    阅读次数:282
js:深入prototype(下:原型重写)
//当属性和方法特别多时,编写起来不是很方便,可以通过json的格式来编写 //由于原型重写,而且没有通过Person.prototype来指定,此时的constructor不会再指向Person而是指向Object //如果constructor真的比较重要,可以在json中说明原型的指向 function Person(){    } Person.prototype = {...
分类:Web程序   时间:2014-05-03 21:02:22    阅读次数:403
《生活在Linux中》之:prefer function to alias in Bash
在Bash环境中,定义了alias替换有时会产生不是想要的替换:e.g:;而定义function则可以避免这种缺陷。...
分类:系统相关   时间:2014-05-03 15:21:39    阅读次数:319
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!