通过内置sql语句进行数据库操作: 函数原型: void plus.sqlite.executeSql(options); Option内容:name(执行操作的数据库名称),sql(需要执行的sql语句),success(成功执行后的回调函数),fail(失败执行后的回调函数)。 6、执行查询语句 使用select进行内容的查询: 函数原型: void plus.sqlite.selectSql(options); Option...
// 执行SQL语句functionexecuteSQL(){plus.sqlite.executeSql({name:'first',sql:'create table if not exists database("where" CHAR(110),"location" CHAR(100),"age" INT(11))',success:function(e){console.log('executeSql success!');plus.sqlite.executeSql({name:'first',sql:"insert into datab...
// 执行SQL语句functionexecuteSQL(){plus.sqlite.executeSql({name:'first',sql:'create table if not exists database("where" CHAR(110),"location" CHAR(100),"age" INT(11))',success:function(e){console.log('executeSql success!');plus.sqlite.executeSql({name:'first',sql:"insert into datab...