ITeye博客

Javascript传递函数名作为参数,进行执行

jaw111 · 2011-10-06 11:51 · Web前端 · Markdown

function test(fun,param){
      fun(param);
}

function run(param){
      alert(param);

}

 

test(run,'hello');

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。