IndexedDB​ 操作框架 fw4wdb

码农软件 · 软件分类 · HTML5开发相关 · 2019-03-07 12:27:51

软件介绍

fw4wdb是一个简单封装的 IndexedDB 操作框架支持get、put、getAll、each和range操作

<html>
<head>
	<title>test</title>
	<script src=/static/js/fw4wdb.js></script>
	<script type="text/javascript">
	(function(){
	 fw4wdb("test",1,{key:'code',index:[{name:{unique:true}}]})
         .open(function(obj){
       
			 obj.put({code:1,name:'aa'});
			 obj.put({code:2,name:'cc'});
			 obj.put({code:4,name:'bb'});
			 obj.put({code:3,name:'dd'});
			 obj.put({code:5,name:'ee'});
                         obj.sort = 'next'; // 'prev'
                         obj.range("name<cc",function(data){
                             //迭代结果
                             console.log(data);
			 });
			 obj.close();
	 });
	})();
	</script>
</head>
<body>
</body>
</html>

本文地址:https://codercto.com/soft/d/819.html

Modeling the Internet and the Web

Modeling the Internet and the Web

Pierre Baldi、Paolo Frasconi、Padhraic Smyth / Wiley / 2003-7-7 / USD 115.00

Modeling the Internet and the Web covers the most important aspects of modeling the Web using a modern mathematical and probabilistic treatment. It focuses on the information and application layers, a......一起来看看 《Modeling the Internet and the Web》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具