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

Mission Python

Mission Python

Sean McManus / No Starch Press / 2018-9-18 / GBP 24.99

Launch into coding with Mission Python, a space-themed guide to building a complete computer game in Python. You'll learn programming fundamentals like loops, strings, and lists as you build Escape!, ......一起来看看 《Mission Python》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

html转js在线工具
html转js在线工具

html转js在线工具