bind 是返回对应函数,便于稍后调用;apply 、call 则是立即调用 。 apply、call 在 javascript 中,call 和 apply 都是为了改变某个函数运行时的上下文(context)而存在的,换句话说,就是为了改变函数体内部 this 的指向。JavaScript 的一 ...
分类:
移动开发 时间:
2017-08-17 13:01:15
阅读次数:
243
Android性能优化系列之布局优化 Android性能优化系列之内存优化 Android性能优化系列之apk瘦身 应用的启动速度缓慢是我们在开发过程中常常会遇到的问题,比方启动缓慢导致的黑屏。白屏问题,本篇博客就将介绍App启动优化的相关知识。 应用的启动方式 通常来说,启动方式分为两种:冷启动和 ...
分类:
移动开发 时间:
2017-08-17 13:00:50
阅读次数:
215
In English, we have a concept called root, which can be followed by some other words to form another longer word - let's call this word successor. For ...
分类:
其他好文 时间:
2017-08-16 23:22:37
阅读次数:
981
本文转载自:http://blog.csdn.net/u010164190/article/details/72783963 1.Android.mk LOCAL_PATH := $(call my-dir)include $(CLEAR_VARS)LOCAL_MODULE := binder_de ...
分类:
移动开发 时间:
2017-08-16 23:11:58
阅读次数:
361
@Override public Integer getCount() { return getHibernateTemplate().execute(new HibernateCallback<Integer>(){ @Override public Integer doInHibernate(S ...
分类:
Web程序 时间:
2017-08-16 21:50:57
阅读次数:
146
ES6标准新增了一种新的函数:Arrow Function(箭头函数)。 为什么叫Arrow Function?因为它的定义用的就是一个箭头: 上面的箭头函数相当于: 在继续学习箭头函数之前,请测试你的浏览器是否支持ES6的Arrow Function: 箭头函数相当于匿名函数,并且简化了函数定义。 ...
分类:
其他好文 时间:
2017-08-16 19:18:22
阅读次数:
179
在开始之前建议先阅读iOS runtime的基础理解篇:iOS内功篇:runtime 有筒子在面试的时候,遇到这样一个问题:“如何給NSArray添加一个属性(不能使用继承)”,筒子立马蒙逼了,不能用继承,难道用分类?但是分类貌似只能添加方法不能添加属性啊,筒子百思不得其解,直到后来接触到了runt ...
分类:
移动开发 时间:
2017-08-16 19:13:46
阅读次数:
160
array_map array_walk 函数介绍 为数组的每个元素应用回调函数 使用用户自定义函数对数组中的每个元素做回调处理 版本限制 (PHP 4 >= 4.0.6, PHP 5, PHP 7) (PHP 4, PHP 5, PHP 7) 使用说明 array_map ( callable c ...
分类:
编程语言 时间:
2017-08-16 18:20:48
阅读次数:
226
阅读目录 isinstance和issubclass 反射 setattr delattr getattr hasattr __str__和__repr__ __del__ item系列 __getitem__ __setitem__ __delitem__ __new__ __call__ __l ...
分类:
其他好文 时间:
2017-08-16 17:07:50
阅读次数:
224