2014-10-18 70 views

回答

1

您可以通過properties()方法定義此,例如:

var tasks = new Pouchyng('tasks', 'http://localhost:5984', yngutils.ASC); 
var config = { 
    opts: { 
    filter: function (doc) { 
     return true; 
    } 
    } 
}; 
tasks.properties({ changes: config, to: config, from: config });