mongodb - 执行db.loadServerScripts()语句报错
巴扎黑
巴扎黑 2017-05-02 09:18:31
0
1
492

在mongo中执行命令db.loadServerScripts()报错:
SyntaxError: missing } after property list src/mongo/shell/db.js:1038
这个错误导致的问题是新增加一个mongo函数xxxx之后,接着调用这个函数就会被提示:
ReferenceError: xxxx is not defined (shell):1
但是之前添加的mongodb函数不受影响。
`

巴扎黑
巴扎黑

répondre à tous(1)
小葫芦

看报错的提示,应该是 脚本中有语法错误。
检查一下xxx和它附近的代码哪里缺了}吧。

Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!