一探究竟...
function listaHistorico() {
dbase.transaction(function (tx){
tx.executeSql("SELECT DISTINCT numero FROM CONTACTOS_OUT", [], function (tx, results){
var len = results.rows.length;
for (var i=0; i<len; i++){
$("#lista").append("<li><a class='contactoSMS' href=#SMSCONTOUT?telefone="+ results.rows.item(i).numero +
"><img class='photo' width='64' height='64' src='img/Android_AMCL.png'><h4>"
+ results.rows.item(i).numero + "</h4></a></li>");
}
}, erroEx);
});
$(".contactoSMS").click(function (){
alert("Work please");
});
}
我正在努力,但 $(".contactoSMS").click 不起作用它适用于正在运行的移动应用程序......
一个想法?