4 Star 5 Fork 2

蕉zisuzz / Object-DAO

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
Clone or Download
test.html 989 Bytes
Copy Edit Web IDE Raw Blame History
蕉zisuzz authored 2017-09-01 15:58 . 稍作修改
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<script src="./Object-DAO.js"></script>
<script>
var LS=new DAO('LS_');
// // 在数据库中创建a变量 然后删除两次 查看结果
LS.set('B','Panhy',function(){console.log("set =="+arguments),new Date}
);//[0,"LS_a","xiaoming"]
LS.get('B',function(){console.log(arguments);}
);//[0,"xiaoming"]
LS.OpenindexedDB("TestDB",function(){
console.log(arguments)
})
LS.setIndexDB(function(){
console.log(arguments);
});
// LS.remove('a',function(){console.log('removeOne'+arguments)});//[0,"xiaoming"]
// LS.remove('a',function(){console.log('removeTwo'+arguments)});//[1,null]
// LS.get('a',function(){console.log('getTwo'+arguments)});//[1,null]
</script>
</head>
<body>
</body>
</html>

Comment ( 0 )

Sign in to post a comment

JavaScript
1
https://git.oschina.net/zisuzz/Object-DAO.git
git@git.oschina.net:zisuzz/Object-DAO.git
zisuzz
Object-DAO
Object-DAO
master

Search

101014 b92fc32e 1850385 101014 af024cb7 1850385