var sqlite = { db: undefined, //开启数据库连接 open: function(name, vesion, desc, size){ sqlite.db = openDatabase( name, vesion, desc, size ); return sqlite.db; }, //执行语句 executeSql: function( sql, params, successHandle, errorHandle ){ sqlite.db.transaction(function(tx){ tx.executeSql( sql, params, successHandle, errorHandle); }) }, //新增 insert: function(sql, list, successHandle, errorHandle){ sqlite.db.transaction(function(tx){ for(var i=0; i