_isWindows()
This version of the documentation is archived and no longer supported. To
upgrade your 5.0 deployment, see the MongoDB 6.0 upgrade procedures.
注意
此处列出的原生方法适用于旧版mongo
Shell。
要使用mongosh
中的原生方法,请参阅mongosh
中的原生方法。
_isWindows()
返回: 布尔值。 如果
mongosh
在Windows系统上运行,则返回“true”;如果shell在 Unix 或Linux系统上运行,则返回“false”。