`
zhaole609
  • 浏览: 338695 次
  • 性别: Icon_minigender_1
  • 来自: 河南
社区版块
存档分类
最新评论

the statement callback raised an exception or statement error callback did not r

阅读更多

html5操作数据,插入然后执行查询操作。db.transcation(function(tx){

tx.executeSql("inser ***************")},errorCB,callBack);

});

因为执行操作是异步的,我们可以在callBack函数中判断插入操作是否执行完毕,若插入操作没有执行完或正在执行时可能会throws the statement callback raised an exception or statement error callback did not return false。

尤其是插入记录很的的情况下。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics