<!DOCTYPE HTML>
<html>
<head>
<meta content="text/html; charset=gb2312" http-equiv="Content-Type">
<title>test gelocation API</title>
<script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script>
<script>
var db=window.openDatabase('teacher','1.0','我们的老师数据',20000);
db.transaction(function (tx){
tx.executeSql("SELECT * FROM TT ",[],function(tx,rs){
alert(rs.rows.length);
for(var i=0;i<rs.rows.length;i++){
document.write(rs.rows.item(i)['title']+"<br/> ");
}
},function(tx){
});
});
</script>
</head>
<body>
</body>
</html>
<html>
<head>
<meta content="text/html; charset=gb2312" http-equiv="Content-Type">
<title>test gelocation API</title>
<script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script>
<script>
var db=window.openDatabase('teacher','1.0','我们的老师数据',20000);
db.transaction(function (tx){
tx.executeSql("SELECT * FROM TT ",[],function(tx,rs){
alert(rs.rows.length);
for(var i=0;i<rs.rows.length;i++){
document.write(rs.rows.item(i)['title']+"<br/> ");
}
},function(tx){
});
});
</script>
</head>
<body>
</body>
</html>