javascript this可以绑定到:全局对象,自己定义的对象,用构造函数生成的对象,通过call或者apply更改绑定的对象 1.全局对象 function globalTest(name){ this.name=name; } globalTest('tree'); console...
分类:
编程语言 时间:
2014-12-31 12:55:18
阅读次数:
184
jQuery.event.dispatch,字面意思是事件分发。就是执行绑定的函数。 在jQuery.event.add中,//1, jQuery.event.add中jQuery.event.dispatch.apply( eventHandle.elem, arguments )//2, ...
分类:
编程语言 时间:
2014-12-31 09:52:35
阅读次数:
271
/** * Created by Administrator on 2014-12-31. */class ApplyTest { def apply() = "Apply customer" def test(): Unit = { println("test") }}object A...
分类:
移动开发 时间:
2014-12-31 07:37:11
阅读次数:
162
function isArray(o) { return Object.prototype.toString.apply(o) === “[object Array]”;}function isFunction(o) { return Object.prototype.toString...
分类:
编程语言 时间:
2014-12-30 20:32:18
阅读次数:
245
1 对象冒充,2 call方法方式,3 apply方法方式,4 原型链方式
分类:
编程语言 时间:
2014-12-30 18:56:41
阅读次数:
123
自己使用angular实现html中类似title的功能.1)首先写指令 exports.define=function(md){//这个是写的通用的安全使用apply的服务md.factory(‘safeApply‘,function($rootScope){ returnfunction(scope,fn){ varphase=scope.$root.$$phase; if(phase==‘$apply‘||phase==‘$..
分类:
Web程序 时间:
2014-12-29 12:20:16
阅读次数:
237
Prerequisite check CheckMinimumOPatchVersion failed
问题现象:
[oracle@db01 18522509]$ /DBSoft/Product/11.2.4/db_1/OPatch/opatch apply
Oracle Interim Patch Installer version 11.2.0.3.4
Copyri...
分类:
其他好文 时间:
2014-12-29 12:09:28
阅读次数:
296
ECMAScript规范给所有函数都定义了Call()与apply()两个方法,call与apply的第一个参数都是需要调用的函数对象,在函数体内这个参数就是this的值,剩余的参数是需要传递给函数的值,call与apply的不同就是call传的值可以是任意的,而apply传的剩余值必须为数组。例如...
分类:
移动开发 时间:
2014-12-29 10:17:34
阅读次数:
170
Since last year August when I started to prepare for the IELTS examiation, it took one year's time for me to successfully apply the Australian Scholar...
分类:
其他好文 时间:
2014-12-28 23:30:08
阅读次数:
193
Gradle adds the task rule clean to our projects when we apply the base plugin. This task is able to remove any output files or directories we have def...
分类:
其他好文 时间:
2014-12-27 21:43:30
阅读次数:
296