call和apply 两者作用一致,都是把obj(即this)绑定到thisObj,这时候thisObj具备了obj的属性和方法。或者说thisObj『继承』了obj的属性和方法。绑定后会立即执行函数。 唯一区别是apply接受的是数组参数,call接受的是连续参数。 我们在控制台运行: 调用原生对 ...
分类:
移动开发 时间:
2018-03-02 14:40:50
阅读次数:
171
拨打电话:wx.makePhoneCall ...
分类:
微信 时间:
2018-03-01 19:49:36
阅读次数:
244
function _arr_max($arr = []){ if(func_num_args() > 1){ $result = []; foreach(func_get_args() as $arr){ array_push($result,call_user_func_array('max',[... ...
分类:
编程语言 时间:
2018-03-01 17:08:59
阅读次数:
150
A helper class for cross thread callings. ...
分类:
其他好文 时间:
2018-02-28 14:08:29
阅读次数:
125
The API: int read4(char *buf) reads 4 characters at a time from a file. The return value is the actual number of characters read. For example, it retu ...
分类:
其他好文 时间:
2018-02-28 10:40:30
阅读次数:
147
这里只提供思路不附加任何软件和代码(针对一小部分软件) 文件载入之后紧接着按F12暂停,暂停法的应用!!!假如OD段在了系统领空返回到用户(如果反不回去,就一步一步跟尝试返回到用户代码),之后单步找出退出的代码如果退出的代码是一个无法跳过的call可以尝试nop软件不一定奔溃!! 感觉讲的比较清楚能 ...
分类:
其他好文 时间:
2018-02-28 10:38:32
阅读次数:
1315
创建表 create table test ( id int(10) not null primary key auto_increment, md5 varchar(30), subkey int(15) )engine=innodb; 修改表 添加列 alter table test add c ...
分类:
数据库 时间:
2018-02-27 23:44:45
阅读次数:
269
;;;;;;;;;;;;;;;;;;;;;; FPM Configuration ;;;;;;;;;;;;;;;;;;;;;; ; All relative paths in this configuration file are relative to PHP's install; prefix ...
分类:
Web程序 时间:
2018-02-27 21:31:12
阅读次数:
341
1.apply和call的区别在哪里 2.什么情况下用apply,什么情况下用call 3.apply的其他巧妙用法(一般在什么情况下可以使用apply) 我首先从网上查到关于apply和call的定义,然后用示例来解释这两个方法的意思和如何去用. apply:方法能劫持另外一个对象的方法,继承另外 ...
分类:
移动开发 时间:
2018-02-27 19:28:09
阅读次数:
196
工作中很久没有接触动态代理,之前的学习也有些模糊,导致有些遗忘,这里记录下个人对动态代理的理解,如有读者发现问题多多指正吧。就java而言对于动态代理的支持多是以接口实现,其实现主要是通过java.lang.reflect.Proxy类,java.lang.reflect.InvocationHan... ...
分类:
其他好文 时间:
2018-02-27 19:20:34
阅读次数:
182