专注于高品质PHP技术等信息服务于一体 [STIEMAP] [RSS]

百度提供的广告:
JSCSS
当前位置:首页 > 技术文档 > JSCSS >  > 
js 回调 匿名函数
<html>
<script type="text/javascript">
/*js 回调 匿名函数*/
function hello()
{
    alert("hello");
}
function test(callback)
{
    callback();
}
test(hello);
test(function(){ alert("匿名函数");});
</script>
</html>