phonegap教程SenchaTouch ActionSheet以及弹出框 学习要点: 1. ActionSheet 2. 弹出框 1. ActionSheet 显示ActionSheet Ext.ComponentQuery.query('#actionsheet')[0].show(); 隐藏ActionSheet Ext.ComponentQuery.query('#actionsheet')[0].hide(); 2. 弹出框 Ext.Msg.confirm('标题','您确认要跳转到内部页面吗?',function(btn){ if (btn=='yes') { alert('您点击了确认'); Ext.ComponentQuery.query('#myCard')[0].setActiveItem(1); }else { alert('您点击了取消') } },this); Ext.Msg.prompt('标题','您确认要跳转到内部页面吗?',function(btn,myvalue){ if (btn=='ok') { if (myvalue =='111'){ alert('您点击了确认'); Ext.ComponentQuery.query('#myCard')[0].setActiveItem(1); }else{ alert('您输入的数字不正确,请重新输入'); } } else { alert('您点击了取消')} },this); |
Archiver|手机版|小黑屋|
PhoneGap中文网
( 京ICP备13027796号-1 )
GMT+8, 2025-2-13 01:53 , Processed in 0.049832 second(s), 20 queries .
Powered by Discuz! X3.2
© 2001-2013 Comsenz Inc.