关于cradle这个件中,官方文档给出的
db.view('characters/all,function.....')中,view的第一个参数是什么?
error object/string
db.view('characters/all', function (err, res) {
if (err) {
console.dir(err)
return
}
res.forEach(function (row) {
console.log("%s is on the %s side of the force.", row.name, row.force);
});
});