jqCouch
- 授权协议: 未知
- 开发语言:
- 操作系统: 未知
- 软件首页: http://plugins.jquery.com/project/jqcouch
软件介绍
jQuery plugin for CouchDB, handling different type of couchdb connections.
jqcouch requires the new JSON-based CouchDB, which currently has to be installed from svn.
More details on this in the CouchDB projects website.
Database
var dbc = $.jqCouch.connection('db');
dbc.exists('database_name');---
if ($.jqCouch.connection('db').create('database_name').ok) {
alert("database created");
}Doc
var dc = $.jqCouch.connection('doc');
var rev = dc.get('database/document1')._rev;---
var doc = {_id:"0",a:1,b:1};
if ($.jqCouch.connection('doc').save('database_name', doc)._id !== false) {
alert("Created document with rev: "+doc._rev+", a="+doc.a);
}---
//Get all documents from database. (With cache)
var dc = $.jqCouch.connection('doc');
dc.update_config('cache', true);
if (var total_documents = dc.all('database_name').total_rows) {
var all_documents = dc.all('database_name').rows;
}
//Get all documents from database. (Without cache)
var dc = $.jqCouch.connection('doc');
var all = dc.all('database_name');
if (all.total_rows > 0) {
var all_documents = all.rows;
}View
var vc = $.jqCouch.connection('view');
if (vc.exists('database_name', 'event') !== false) {
alert("View "event" exists");
}---
if ($.jqCouch.connection('view').exists('database_name', 'event/all') !== false) {
alert("View "event/all" exists");
}文明之光(第一册)
吴军 / 人民邮电出版社 / 2014-6-25 / 59.00元
人类的历史,是从野蛮蒙昧一步步走向文明进步的过程。在文明的进程中,人类创造出多元的文化,它们有着各自的特长。要实现人类和平发展的终极理想,一个重要的前提是承认文化的多元性,并且取长补短,相互融合。 吴军博士写作《文明之光》系列,希望能开阔人们的视野,让我们看到各种各样的人类文明。虽然今天不同的地区发达程度不同,文明历史的长短不一,国家亦有大小之分,但是文明之光从世界的每一个角落发出,对人类的......一起来看看 《文明之光(第一册)》 这本书的介绍吧!
RGB HSV 转换
RGB HSV 互转工具
HSV CMYK 转换工具
HSV CMYK互换工具
