我需要某些代码的布局帮助。 我可以拨打function3
来自function1
和function2
的参数吗? 我不能让function2
成为嵌套函数,因为它是由onclick
激活的。使用来自两个不同函数的参数调用函数
谢谢!
function 1(){
//This function activates when a file is imported and calculates one variable from an imported document.
}
function 2(){
//The function activates from an "onclick()" this function calculates another variable.
}
function 3(){
//calculation of the two variables
}
的事情是我想调用函数FC3用两个参数。一个来自fnc1,一个来自fnc2。我知道这是不可能与我目前的代码,但我不知道如何解决它。希望这使得sens –