I'm trying to pass some parameter to a function used as callback, how can I do that?
(我正在尝试将一些参数传递给用作回调的函数,该怎么做?)
function tryMe (param1, param2) {
alert (param1 + " and " + param2);
}
function callbackTester (callback, param1, param2) {
callback (param1, param2);
}
callbackTester (tryMe, "hello", "goodbye");
ask by vitto translate from so