---
title: "巧妙利用Function.prototype.call.apply实现结合函数"
author: "hackwaly"
date: "2009-09-08T13:47:21Z"
tags: []
slug: "function-prototype-call-apply"
draft: false
lastmod: "2009-09-08T14:00:41Z"
id: 464707
url: "https://hackwaly.iteye.com/blog/464707"
---

**var** call = Function.prototype.call;

**var** mixin = **function** (that){

    **for** (**var** k **in** that)

        **this**\[k] = that\[k];

    **return** arguments.length == 1 ?

        **this** : call.apply(mixin, arguments);

};