You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
functioncallbackFunction(name){console.log("Hello "+name);}functionouterFunction(callback){letname=prompt("Please enter your name.");callback(name);}outerFunction(callbackFunction);
The text was updated successfully, but these errors were encountered:
回调函数是作为参数传递给另一个函数的函数。该函数在外部函数内部被调用以完成一个动作。我们举一个简单的例子来说明如何使用回调函数
The text was updated successfully, but these errors were encountered: