这算回调么
function call(what, func) { func(what); }//这个是回调函数么 function test1(a) { setTimeout(function () { console.log(a) }, 0); } function test2(a) { console.log(a); } call(1, test1); call(2, test2);
function call(what, func) { func(what); }//这个是回调函数么 function test1(a) { setTimeout(function () { console.log(a) }, 0); } function test2(a) { console.log(a); } call(1, test1); call(2, test2);