0
Ich habe 'func1', die async 'func2' hüllt wie:Wie mache ich eine asynchrone Wrap-Funktion für die asynchrone Funktion?
func1 = function(arg1) {
func2 (arg1, function(result) {
// parse and return some parts of 'result'
}, function(error) {
alert (error.message);
})
}
Wie async zu 'func1' machen (für externen Code).