使用JavaScript在客户端访问MongoDB [英] Acessing MongoDB on the Client-Side using JavaScript
本文介绍了使用JavaScript在客户端访问MongoDB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我知道这完全不安全,因为用户可以控制凭据。但是在我正在构建的应用程序中我并不关心它是完全不安全的。
I know this is completely unsafe to do because the user would have control over the credentials. But in application I'm building I don't really care it's completely insecure.
有没有办法使用客户端JavaScript在MongoDb上打开连接?
Mongo网站上的JavaScript驱动程序仅用于NodeJS。
Is there a way to open a connection on a MongoDb using client-side JavaScript ? The JavaScript driver on Mongo's website is for use on NodeJS only.
谢谢,
Fred_
推荐答案
看看mongodb http接口列表。启动mongodb,启动服务器,使用ajax从该服务器请求/修改数据。
Take a look at the mongodb http interfaces list. Start a mongodb, start the sever, request/modify a data from that server using ajax.
这篇关于使用JavaScript在客户端访问MongoDB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文