这是我的代码:
function onDeviceReady() {
alert("on device ready");
//var db = window.openDatabase("Weather", "1.0", "Weather DB", 1000000);
//db.transaction(populateDB, errorCB, successCB);
}
document.addEventListener("deviceready", onDeviceReady, false);
它不工作。设备上的准备就绪和 document.addevent 侦听器也在
$(document).ready(function() {});