function add(a,b){ this(a,b); alert(a+b); } function sub(a,b){ alert(a-b); } document.getElementById(“id1”).onclick = function(){ add.call(sub,3,1); } 先执行了sub 为2 又执行了add 为4 call 把add的this指向了sub 然后再执行add(3,1)