我即将编写一个HTML文件,它应该在本地浏览器中运行,创建和修改一个数据库(Forerunner ),并显示一些结果。
我写了下面的文章,我应该在哪里找到数据库文件?下面的“页面加载后”是否足以将DB加载到sse,还是有一些“保存”命令?
<!DOCTYPE html>
<meta charset="utf-8" />
<title>ouch</title>
<body>
<p id="out">Testing..</br> >
</body>
<script src="C:\Users\n17263\node_modules\forerunnerdb\js\dist\fdb-all.min.js" type="text/javascript"></script>
<script>
var db = new ForerunnerDB('db');
var Customers= db.collection('Customers');
var Suppliers= db.collection('Suppliers');
var Items= db.collection('Items');
var S_ITMES= db.collection('S_ITEMS');
var Purchase_Invoices= db.collection('Purchase_Invoices');
var Sales_Invoices= db.collection('Sales_Invoices');
var Orders= db.collection('Orders');
Customers.insert({name:'Mohammad'});
</script>发布于 2015-04-01 11:55:41
它将数据库保存到IndexedDB、WebSQL或LocalStorage。您可以手动指定它,如文档所示的这里。
https://stackoverflow.com/questions/29389983
复制相似问题