这是我的构造函数:
iconJs =new dojox.mobile.IconItem({label:'', deletable: false, icon:'images/Tile_Toevoegen.png', transition:'slide', class:'klasIcon', url:'views/klappr/addKlas.html', urlTarget:'addKlas', onClick:function(){alert("test onclick");} , callback: function(){alert("test callback");}});
当我单击 iconItem 时,警报“test onclick”起作用。但我需要回调函数才能工作。
在 iconItem 指南中:
**callback**
Function String
A callback function that is called when the transition has been finished. A function reference, or name of a function in context.
转换完成时需要调用警报“测试回调”,但它不起作用。有人可以帮我吗?