![](/img/trans.png)
[英]Does throw new Error do the same thing as console.error?
[英]Console.error does not print string in correct location
这让我感到困惑。 我不知道为什么它以这种方式输出文本,并在最后加上<>
function foo(){
console.error('Trying to phase out <' + arguments.callee.name + '>');
//output
Trying to phase out foo <>
}
那是因为arguments.callee.name
为null
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.