PhoneGap的sqlite的返回:错误code = 14,味精=可在27206行无法打开文件[42537b6056] [英] phonegap sqlite returned: error code = 14, msg = cannot open file at line 27206 of [42537b6056]
本文介绍了PhoneGap的sqlite的返回:错误code = 14,味精=可在27206行无法打开文件[42537b6056]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
获取错误:在[42537b6056] 27206行错误code = 14,味精=无法打开文件,当我在我的HTC运行我的PhoneGap应用程序
Getting error: error code = 14, msg = cannot open file at line 27206 of [42537b6056] when i run my phonegap app on my htc
我的JS是这样的:
VAR分贝;
my js looks like this: var db;
function onLoad() {
document.addEventListener("deviceready", onDeviceReady, false);
}
function onDeviceReady() {
db = window.openDatabase("DB1", "1.0", "DB1 name", 65536);
}
什么想法?
推荐答案
您可以安全地忽略这个错误:
You can safely ignore this error:
sqlite的返回:错误code = 14,味精=可以在源代码行27206无法打开文件
"sqlite returned: error code = 14, msg = cannot open file at source line 27206"
这不会产生任何问题你。
It Will not produce any issues for you.
更新:
试试这个code
UPDATE: Try this code
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Example</title>
<!-- Adding Phonegap scripts -->
<script type="text/javascript" charset="utf-8" src="cordova/cordova-1.5.0.js"> </script>
<script type="text/javascript">
function onDeviceReady() {
}
function showAlert() {
alert("Not yet implemented");
}
document.addEventListener("deviceready", onDeviceReady, false);
</script>
</head>
<body>
<div>
Username: <input type="text" id="user" name="user" style="width:140px">
</div>
<div>
Password: <input type="password" id="pass" name="pass" style=
"width:140px">
</div><span id="loginbutton" data-role="button" data-icon="check"
data-inline="true" data-theme="b" onclick="showAlert()">Login</span>
</body>
</html>
这篇关于PhoneGap的sqlite的返回:错误code = 14,味精=可在27206行无法打开文件[42537b6056]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文