开发者

How do i view the local database version in safari on the iphone?

开发者 https://www.devze.com 2023-01-01 01:34 出处:网络
I am trying to see the localDatabase version from my iPhone in safari but it is not displaying, according to the docs i am supposed to be able to do this:

I am trying to see the localDatabase version from my iPhone in safari but it is not displaying, according to the docs i am supposed to be able to do this:

var db = openDatabase('dbShortName', '', 'dbLongName', 1000);
alert(db.version);

and it should alert the current version n开发者_运维百科umber. It does not. It works in Chrome and safari for the desktop but not the iPhone. Does anybody have some idea why?

My next option is to store the version in a separate table, but I would prefer to use the built in system. Thanks in advance.


On your iPhone, if you go to Settings and scroll down to Safari, there's a Databases button which shows you the current databases on the phone. Does the database you're trying to open definitely exist?

0

精彩评论

暂无评论...
验证码 换一张
取 消