在mongo中执行命令db.loadServerScripts()
报错:SyntaxError: missing } after property list src/mongo/shell/db.js:1038
这个错误导致的问题是新增加一个mongo函数xxxx
之后,接着调用这个函数就会被提示:ReferenceError: xxxx is not defined (shell):1
但是之前添加的mongodb函数不受影响。
`
高洛峰2017-05-02 09:20:31
Look at the error message, it should be that there is a syntax error in the script.
Check it outxxx
和它附近的代码哪里缺了}
.