如何调出分配给变量的javascript函数? [英] How to call out javascript function which is assigned to a variable?
本文介绍了如何调出分配给变量的javascript函数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
function test1 (){
//do something
}
要调用上面的函数,我只需要编写 test1();
To call out the function above, i just need to write test1();
var check_day = function($select_d){
//do something
};
如何调用分配给变量的函数?
How can I call out the function which is assigned to a variable?
推荐答案
以相同的方式使用括号()
调用函数:
The same way–call a function using parens ()
:
check_day(the_parameter);
这篇关于如何调出分配给变量的javascript函数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文