【发布时间】:2011-10-12 15:28:17
【问题描述】:
由于PhoneGap还不支持sql迁移,android也不支持html5进度标签,所以我决定自己创建,问题是我不知道怎么做。
我想用进度条填充 sql 表,通知用户完成了多少,还有多少要做。
它应该是这样的:
function injectSql() {
// lineToUse = sql query()
// lineToUse = sql query()
// and so on. I don't want to use var as there are plenty of this injections and it'll crash the phone.
return LineToUse;
}
function sqlCounter() {
var injThisLine = injectSql(lineToUse);
db.transaction (
function(t){
db.executeSql(injThisLine);
});
alert (injThisLineKey + 'out of nn');
}
抱歉,如果我没有任何意义。
谢谢。
【问题讨论】:
标签: javascript sql cordova