发布于 2015-09-14 15:12:38 | 84 次阅读 | 评论: 0 | 来源: 网络整理
Para string file: | |
---|---|
Specify a path and file name containing JavaScript. |
This native function loads and runs a JavaScript file into the current shell environment. To run JavaScript with the mongo shell, you can either:
Specify files loaded with the load() function in relative terms to the current directory of the mongo shell session. Check the current directory using the “pwd()” function.