3.0 写脚本 null 的问题太烦人了,老爆红,再加上强迫症。
有什么办法屏蔽 null 的检测吗?
一定要全局屏蔽的话:
tsconfig.json
,“compilerOptions”: {
“strictNullChecks”:false,
}
@property({ type: Label })
info: Label = null!;
3.0 写脚本 null 的问题太烦人了,老爆红,再加上强迫症。
有什么办法屏蔽 null 的检测吗?
一定要全局屏蔽的话:
tsconfig.json
,“compilerOptions”: {
“strictNullChecks”:false,
}
@property({ type: Label })
info: Label = null!;