edgeToEdge リストがあり、ユーザーがアイテムをクリックすると、関数が呼び出されます。ブラウザではすべてが完全に機能しますが、Androidエミュレータでは機能しません。
html:
<ul id="ulElencoListiniClienti"></ul>
js:
var mydata="[ ";
for (var i=0;i<codice_listino.length;i++){
mydata+="{ 'label': '"+codice_listino[i].CDLST+"', 'onClick': \"getAllDettaglioListino('"+codice_listino[i].CDLST+"')\" }, ";
}
var lungh = mydata.length;
mydata = mydata.substring(0,lungh-2); // tolgo l'ultimo carattere della stringa,ovvero la virgola
mydata+="] ";
listini_cliente_data= eval (mydata);
関数 getAllDettaglioListino(id_listino)
function getAllDettaglioListino(id_listino){
..
WL.Logger.debug("Dettaglio listino:"+id_listino);
..
var w = dijit.registry.byId('view_elenco_listini');
w.performTransition('view_dettaglio_listini',1,"slide",null);
logcat エラー:
07-02 12:31:41.511: D/CordovaLog(753): Uncaught TypeError: Property 'onClick' of object [Widget dojox.mobile.ListItem, dojox_mobile_ListItem_39] is not a function
07-02 12:31:41.511: E/Web Console(753): Uncaught TypeError: Property 'onClick' of object [Widget dojox.mobile.ListItem, dojox_mobile_ListItem_39] is not a function at file:///data/data/com.MobileACG/files/www/default/dojo/mobile-ui-layer.js:302
EdgeToEdgeStoreList でプロパティ onClick を使用して Android 環境でテストした人はいませんか?