document.addEventListener("deviceready", function () {
document.addEventListener("backbutton", function() {
alert("hello");
});
});
它正在工作,但是
var element = $("#score-screen")[0];
element.addEventListener("deviceready", function() {
element.addEventListener("backbutton", function() {
alert("hello");
});
});
score-screen 是 div id 它不工作.. 帮帮我.. 请