我已经在我的应用程序中安装了这个库(使用ionic add angular-pouchdb)。但是当我试图声明一个实例化数据库的工厂时,我得到了这个错误:Uncaught ReferenceError: pouchDB is not defined。请看下面的代码。) { var remote = 'https://louisromain:bingin//ang
我目前正在使用PouchDB,我正在利用Cloudant将我在PouchDB中的数据库设置为云端。function pouchdb() {
var remoteDB = new PouchDB("http://example.cloudant.com; PouchDB.sync(db, remoteD
我正在尝试实例化javascript文件中的PouchDB。var imported = document.createElement('script');imported.src = 'pouchdb-6.1.2.js';在我的自定义函数中,我将其实例化为:
var db = new PouchDB('mydb