日期:2014-05-16 浏览次数:20314 次
function throwMyError(name,message){ //output the call stack console.trace(); var err = new Error(); err.name = name; err.message = message; throw(err); }