js中的回钓函数,C#中的委托

$(function(){

myfunction(sayHi);

});

 

var sayHi=function(){

alter('你好');

}

 

function myfunction(a){

a();

}

posted @ 2016-03-11 17:48  快速突围  阅读(175)  评论(0编辑  收藏  举报