ホームページ > に質問 > 本文
在mongo中执行命令db.loadServerScripts()报错:SyntaxError: missing } after property list src/mongo/shell/db.js:1038这个错误导致的问题是新增加一个mongo函数xxxx之后,接着调用这个函数就会被提示:ReferenceError: xxxx is not defined (shell):1但是之前添加的mongodb函数不受影响。`
db.loadServerScripts()
SyntaxError: missing } after property list src/mongo/shell/db.js:1038
xxxx
ReferenceError: xxxx is not defined (shell):1
高洛峰2017-05-02 09:20:31
エラー メッセージを確認すると、スクリプトに構文エラーがあることがわかります。 チェックしてくださいxxx和它附近的代码哪里缺了}。
xxx
}