📌  相关文章
📜  调用 javascript 函数使用数组 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:12.653000             🧑  作者: Mango

代码示例1
var array_of_functions = [
    first_function('a string'),
    second_function('a string'),
    third_function('a string'),
    forth_function('a string')
]
for (i = 0; i < array_of_functions.length; i++) {
    array_of_functions[i]();
}