PhoneGap中文网

 找回密码
 立即注册

第五讲 phonegap教程SenchaTouch ActionSheet以及弹出框

2014-2-21 22:52| 发布者: admin| 查看: 7073| 评论: 0

摘要: phonegap教程SenchaTouch ActionSheet以及弹出框 学习要点: 1. ActionSheet 2. 弹出框1. ActionSheet显示ActionSheetExt.ComponentQuery.query('#actionsheet').show();隐藏ActionSheetExt.ComponentQuery.query('# ...
phonegap教程SenchaTouch ActionSheet以及弹出框
学习要点:

    1. ActionSheet
    2. 弹出框


1. ActionSheet

显示ActionSheet
Ext.ComponentQuery.query('#actionsheet')[0].show();

隐藏ActionSheet
Ext.ComponentQuery.query('#actionsheet')[0].hide();

SenchaTouch ActionSheet


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);


头晕

难过

扯淡

不解

搞笑

支持

超赞

欠扁

相关阅读

最新评论

关闭

站长推荐 上一条 /1 下一条

ionic4视频教程

Archiver|手机版|小黑屋| PhoneGap中文网 ( 京ICP备13027796号-1 )  

GMT+8, 2024-4-19 09:32 , Processed in 0.028834 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

返回顶部