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.
有可能在运行时抛出错误throw。
throw
throw new Error( "Error message!" );
是否可以在编译时从 AS3 代码抛出错误或警告?
不,不是,除非您可以以某种方式修改编译器或编写自己的编译器。
您不能编写代码来引发编译时错误,这是没有意义的。