填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

isDevMode

返回 Angular 是否处于开发模式。调用一次后,该值将被锁定,并且将不再更改。

Returns whether Angular is in development mode. After called once, the value is locked and won't change any more.

查看"说明"...

      
      isDevMode(): boolean
    
参数

没有参数。

返回值

boolean

说明

默认情况下,这是正确的,除非用户在调用它之前调用 enableProdMode

By default, this is true, unless a user calls enableProdMode before calling this.