Math.max.apply(null,[1,2,3]);
將 Math.max的_ this_綁定爲_ null_,當即執行返回結果3java
function f(y) { return this.x+y; } var o={x:1}; var g=f.bind(o);//將f綁定新的this o,返回新的函數g g(2);//輸出3