【发布时间】:2011-02-01 10:02:05
【问题描述】:
如果我有如下功能:
function catchUndefinedFunctionCall( name, arguments )
{
alert( name + ' is not defined' );
}
我做了一些愚蠢的事情
foo( 'bar' );
当 foo 未定义时,有什么方法可以调用我的 catch 函数,名称为“foo”,参数为包含“bar”的数组?
【问题讨论】:
标签: javascript error-handling undefined