Home > front end >  For post
For post

Time:09-27

Bosses can parse the code, please
Enclosing gainNode=Musicvisualizer. Ac [Musicvisualizer. Ac. CreateGain? "createGain" : "createGainNode"] ();
The complete code below

CodePudding user response:

 


Var Musicvisualizer={
Ac: {
CreateGain: function () {return 1},
CreateGainNode: function () {return 2},
}
}

Enclosing gainNode=Musicvisualizer. Ac [Musicvisualizer. Ac. CreateGain? "createGain" : "createGainNode"] ();

Var func='
If (Musicvisualizer. Ac. CreateGain) {
Func='createGain'
}
The else {
Func='createGainNode'
}

This. GainNode=Musicvisualizer. Ac/func ()



  • Related