#2
apull2022-03-08 15:10
|
function f2(name) {
return ('Hello ' + name);
}
function f1(callback) {
var name = prompt('请输入你的名字。');
window.setTimeout(function () {
var data= callback(name);
return data;
},5000)
}
var result=f1(f2);
alert(result);