获取错误:错误代码= 14,当我在我的htc上运行我的phonegap应用程序时,msg =无法打开[42537b6056]第27206行的文件
我的js看起来像这样: var db;
function onLoad() {
document.addEventListener("deviceready", onDeviceReady, false);
}
function onDeviceReady() {
db = window.openDatabase("DB1", "1.0", "DB1 name", 65536);
}
任何想法?
答案 0 :(得分:1)
您可以放心地忽略此错误:
“sqlite返回:错误代码= 14,msg =无法在源代码行27206打开文件”
它不会给你带来任何问题。
<强>更新强> 试试这段代码
<!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>