【发布时间】:2011-07-17 10:10:48
【问题描述】:
可能重复:
the difference between try/catch/throw and try/catch(e)/throw e
请原谅我的愚蠢,有人知道它们之间的区别吗?
try
{
return 1 / 0;
}
catch (Exception)
{
throw;
}
try
{
return 1 / 0;
}
catch
{
throw;
}
try
{
return 1 / 0;
}
catch (Exception e)
{
throw(e);
}
【问题讨论】: