2017-04-13 74 views

回答

3

Pouchdb只是增加了插件來它的原型,所以如果你不介意看到一些內置插件:

> location.href 
"http://nolanlawson.github.io/pouchdb-find/" 

> Object.getOwnPropertyNames(PouchDB.prototype) 
Array[11] 
0: "constructor" 
1: "query" 
2: "viewCleanup" 
3: "replicate" 
4: "sync" 
5: "upsert" 
6: "putIfNotExists" 
7: "createIndex" 
8: "find" 
9: "getIndexes" 
10: "deleteIndex" 
length: 11 
__proto__: Array[0] 


> "find" in Object.getOwnPropertyNames(PouchDB.prototype) 
true 
相關問題