从JQuery本地查询mySQL,无需PHP等 [英] Query mySQL natively from JQuery without the need for PHP etc
本文介绍了从JQuery本地查询mySQL,无需PHP等的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
G'Day,
是否可以直接从jQuery中查询mySQL,而不必使用PHP/Python/Ruby等?
解决方案
您无法使用MySQL,因为它使用了浏览器不说话的二进制协议.不过,您可以使用 CouchDB 来做到这一点,它使用HTTP和JSON,因此非常适合这种事情./p>
G'Day,
Is it possible to query mySQL directly from within jQuery without having to use PHP/Python/Ruby etc.?
解决方案
You can't do it with MySQL because it uses a binary protocol that the browser doesn't speak. You can do it with CouchDB, though, which uses HTTP and JSON so it's perfect for this kind of thing.
这篇关于从JQuery本地查询mySQL,无需PHP等的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文