【发布时间】:2017-04-16 08:13:48
【问题描述】:
我需要一些代码布局方面的帮助。
我可以用来自function1 和function2 的参数以某种方式调用function3 吗?
我不能让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
}
【问题讨论】:
标签: javascript function arguments nested-function