Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Douglas Cockford 坚持认为它必须是一个“具有两个属性的异常对象: aname和 a message。
name
message
这只是他FUDing,还是什么?
是的,可以抛出任意对象。试试看:
throw 5;