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。

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

猜你喜欢

转载自lqzit.iteye.com/blog/2061984