使用CouchDB的jquery.couch.js? [英] Using CouchDB's jquery.couch.js?

查看:101
本文介绍了使用CouchDB的jquery.couch.js?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此处 http ://blog.couchone.com/post/1027100082/whats-new-in-couchdb-1-0-part-4-securityn-stuff 它说jquery.couch.js是标准的JavaScript API,附带CouchDB。

Here http://blog.couchone.com/post/1027100082/whats-new-in-couchdb-1-0-part-4-securityn-stuff it says that jquery.couch.js is the standard JavaScript API that ships with CouchDB.

但我如何从couchdb获取jquery.couch.js文件,以便我可以使用它的函数($ .couch.signup,$ .couch。我的Sproutcore应用程序或其他前端应用程序中的登录等)?

But how do i get the jquery.couch.js file from couchdb so I could use it's functions ($.couch.signup, $.couch.login etc) in my Sproutcore application or another frontend application?

推荐答案

Futon使用此API本身,因此您可以看到它包含在哪里它,以及它可能具有的其他依赖性,取决于你将要做什么。由于CouchDB服务器可以提供HTTP请求,您还可以像Futon那样提取依赖关系。

Futon uses this API itself, so you can see where it includes it, as well as other dependencies it may have, depending on what you'll be doing. Since the CouchDB server can serve up HTTP requests, you can also pull in the dependencies like Futon does.

<script type="text/javascript" src="http://localhost:5984/_utils/script/jquery.couch.js"></script>

显然,您将更改主机名以匹配您的couchapp的主机名。

Obviously you'll change the hostname to match your couchapp's hostname.

这篇关于使用CouchDB的jquery.couch.js?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆