http://expert.csdn.net/Expert/TopicView1.asp?id=1629593

解决方案 »

  1.   

    var o=Object();
    o.f = f;
    function f()
    {
    this.x = 0;
    }f(); //this == window
    o.f();// this == o;
    var another = [];
    f.call(another);// this == another;
    f.apply(another);// this == another;btn.onclick = f; //this == window;
    btn.attachEvent("onclick", f); //this == event.srcElement
    function btn::onclick();// this == btn
    {
    this.x =0;
    }
    大概就这么多用法了,欢迎大家补充。