mongo
此处列出的原生方法适用于旧版 mongo shell 。
要使用mongosh 中的原生方法,请参阅 mongosh中的原生方法。
mongosh
_rand()
0
1
此函数提供与标准库中的Math.rand()函数类似的功能。
Math.rand()
后退
_isWindows()
来年
mongo Shell 快速参考