如何使用JavaScript访问mysql? [英] How to access mysql using javascript?
问题描述
我知道大多数人都说:哦!不可能,请使用php"或其他方法. 那会浪费我的时间.我不想听到这是不可能的.
I know that most people say, "OH! It's not possible, use php" or whatever... That would be a waste of my time. I don't want to hear that it's not possible.
无论如何,我正在寻找可以使用javascript访问mysql的方法.我不在乎它是一个多大的过程,或者它会占用node.js.
I'm looking for anyway possible that I can access mysql using javascript. I don't care how much of a drawn out process it is or that it would take node.js.
请给我一种方法.我愿意研究Node.js或AJAX,但我只想使用javascript而不是其他任何东西.
Just give me a way to do it. Node.js or AJAX is something I'm willing to look into, but I'd rather just use javascript and nothing else.
我确实知道PHP,Node.js和AJAX,所以我不是在寻找简单的方法.我只想找出方法.
I do know PHP, Node.js, and AJAX, so I'm not looking for an easy way out. I just want to find out how.
*编辑*
我想这将是我想要的东西
I guess this would be more of what I am looking for:
浏览器javascript中是否可以访问其他类型的sql或某种数据库?
Is there any other types of sql or some sort of database that is accessable by in browser javascript?
推荐答案
您应该结帐 https://mongolab.com/home 它们使用JSON对象提供对NoSQL数据库的完全访问权限,而JSON对象可通过jQuery调用直接访问.我在Hackathon上看到了这些家伙,最终赢得了奖金!它们很酷,如果您单击支持链接,可能会为您提供直接帮助.
You should checkout https://mongolab.com/home They provide full access to a NoSQL database using JSON objects which are directly accessible with jQuery calls. I saw these guys at a Hackathon and ended up winning a prize! They are cool and will probably give you direct help if you click the support link.
这篇关于如何使用JavaScript访问mysql?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!