phonegap使用方法介绍(八)操作数据库【点击查看详情】
实例如下:<;,";1.0";,";Test";,200000);db.transaction(populateDB,errorDB,successDB);} //初始化数据库数据function populateDB(tx){tx.executeSql(';DROP TABLE IF EXISTS test1';);tx.executeSql(';CREATE TABLE IF NOT EXISTS test1 (id unique,name)';);tx.executeSql(';INSERT INTO test1(id,name) VALUES(1,name) VALUES(2,name) VALUES(3,[]。