此错误消息“insertId:Error:INVALID_ACCESS_ERR:DOM Exception 15”的含义是什么? [英] What's the meaning of this error message "insertId: Error: INVALID_ACCESS_ERR: DOM Exception 15"?

查看:1053
本文介绍了此错误消息“insertId:Error:INVALID_ACCESS_ERR:DOM Exception 15”的含义是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用jquery mobile,phonegap和openDatabase开发一个应用程序。当应用程序执行时,我可以在Safari浏览器的控制台中看到 SQLResultSet

I'm developing an app using jquery mobile, phonegap and openDatabase. When the app is executed, I can see in the console of Safari browser the SQLResultSet with this message:

insertId: Error: INVALID_ACCESS_ERR: DOM Exception 15. 

但我不明白为什么会显示此讯息。

However, my app is working ok. But I don't understand why that message is shown.

请帮助我。

推荐答案

这意味着事务没有插入行,因为它比错误更多的信息。

It means that no row was inserted by a transaction, by that it's more an information than an error.

如果INSERT语句不成功或事务不是INSERT,resultSet的insertId属性包含此消息,而不是ID最后插入的行。

If an INSERT-statement wasn't successfull or an transaction wasn't an INSERT at all, the insertId-property of the resultSet contains this message instead of the ID of the last inserted row.

http:// docs。 phonegap.com/phonegap_storage_storage.md.html#SQLResultSet

这篇关于此错误消息“insertId:Error:INVALID_ACCESS_ERR:DOM Exception 15”的含义是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆