87,996
社区成员




var Bind = function(object, fun) {
var args = Array.prototype.slice.call(arguments, 2);
return function() {
return fun.apply(object, args.concat(Array.prototype.slice.call(arguments)));
}
}
function test(val){
alert(val);
}
var sth=function(){
this.apply.test(this,[1,2,3,4,5])
}
addEvent( oContainer, "mouseover", Bind( this, function(){ clearTimeout(this._timerContainer); } ) );
var Bind = function(object, fun) {
var args = Array.prototype.slice.call(arguments, 2);
return function() {
return fun.apply(object, args.concat(Array.prototype.slice.call(arguments)));
}
}
function test(a,b,c){
alert(a+','+b+','+c);
}
Bind( this, test,1,2,3,4)()
function test(a,b,c) {
alert(a+','+b+','+c);
}
test.apply(this,[1,2,3,4,5]);
function test(a,b,c)
{
alert(a+','+b+','+c);
}
var Bind = function(object, fun) {
var args = Array.prototype.slice.call(arguments, 2);
return function() {
return fun.apply(object, args.concat(Array.prototype.slice.call(arguments)));
}
}
Bind(test,1,2,3);
function test(val){
alert(val);
}
var sth=function(){
this.apply.test(this,[1,2,3,4,5])
}
sth();
function test(a,b,c)
{
alert(a+','+b+','+c);
}
var Bind = function(object, fun) {
var args = Array.prototype.slice.call(arguments, 2);
return function() {
return fun.apply(object, args.concat(Array.prototype.slice.call(arguments)));
}
}
Bind([1,2,3],test);