Passing a local variable from one function to another

后端 未结 3 615
独厮守ぢ
独厮守ぢ 2021-01-30 09:29

I am a beginner in JavaScript and wanted to ask the following: I have two simple functions and was wondering if there is any way to pass a variable value from one function to an

3条回答
  •  萌比男神i
    2021-01-30 10:11

    You can very easily use this to re-use the value of the variable in another function.

    // Use this in source window.var1= oEvent.getSource().getBindingContext();

    // Get value of var1 in destination var var2= window.var1;

提交回复
热议问题