您现在的位置是:首页 > 电脑 > 

我需要带警告框消息的写名字,如果我输入名字插孔,则警报将像插口登录成功出现(I need the write first name with the alertbox message like if I enter firstname jack then alert will comes out like jack login successfully)

2025-07-16 15:23:07
我需要带警告框消息的写名字,如果我输入名字插孔,则警报将像插口登录成功出现(I need the write first name with the alertbox message like if I enter firstname jack then alert will comes out like jack login successfully) 我需要
我需要带警告框消息的写名字,如果我输入名字插孔,则警报将像插口登录成功出现(I need the write first name with the alertbox message like if I enter firstname jack then alert will comes out like jack login successfully)

我需要带警告框消息的写名字,如果我输入名字插孔,则警报将像插口登录成功出现。

defaultType: 'textfield', items: [{ fieldLabel: 'First ame', itemId:'fname', name: 'first', allowBlank: false },{ fieldLabel: 'Last ame', name: 'last', allowBlank: false },{ fieldLabel: 'User ame', name: 'uame', allowBlank: false, emptyText:'User Id' },{ fieldLabel: 'Password', name: 'passWd', allowBlank: false, inputType:'Password' }], // Reset and Submit butt butt: [{ text: 'Reset', handler: function() { this.up('form').getForm().reset(); } }, { text: 'Login', formBind: true, //only enabled once the form is valid listeners: { click: function() { Ext.Msg.alert('Login Successfully'); }

I need the write first name with the alertbox message like if I enter firstname jack then alert will comes out like jack login successfully.

defaultType: 'textfield', items: [{ fieldLabel: 'First ame', itemId:'fname', name: 'first', allowBlank: false },{ fieldLabel: 'Last ame', name: 'last', allowBlank: false },{ fieldLabel: 'User ame', name: 'uame', allowBlank: false, emptyText:'User Id' },{ fieldLabel: 'Password', name: 'passWd', allowBlank: false, inputType:'Password' }], // Reset and Submit butt butt: [{ text: 'Reset', handler: function() { this.up('form').getForm().reset(); } }, { text: 'Login', formBind: true, //only enabled once the form is valid listeners: { click: function() { Ext.Msg.alert('Login Successfully'); }

最满意答案

看看这个小提琴

代码片段:

{ text: 'Login', formBind: true, //only enabled once the form is valid listeners: { click: function () { var fname = this.up('form').down('#fname').getValue(); Ext.Msg.alert('Success!', fname + ' login successfully'); } } }

Have a look on this fiddle

Code snippet:

{ text: 'Login', formBind: true, //only enabled once the form is valid listeners: { click: function () { var fname = this.up('form').down('#fname').getValue(); Ext.Msg.alert('Success!', fname + ' login successfully'); } } }

#感谢您对电脑配置推荐网 - 最新i3 i5 i7组装电脑配置单推荐报价格的认可,转载请说明来源于"电脑配置推荐网 - 最新i3 i5 i7组装电脑配置单推荐报价格

本文地址:http://www.dnpztj.cn/diannao/654055.html

相关标签:无
上传时间: 2023-07-28 12:50:36
留言与评论(共有 15 条评论)
本站网友 无线网络工程
19分钟前 发表
'Last ame'
本站网友 儿童按摩
26分钟前 发表
{ click
本站网友 p9
28分钟前 发表
'Password'
本站网友 隐藏文件夹
1分钟前 发表
handler
本站网友 长阳
16分钟前 发表
则警报将像插口登录成功出现
本站网友 玩游戏网
13分钟前 发表
name
本站网友 怎样缓解高考压力
14分钟前 发表
[{ text
本站网友 深圳市鹏程医院
22分钟前 发表
'textfield'
本站网友 和田二手房网
18分钟前 发表
则警报将像插口登录成功出现(I need the write first name with the alertbox message like if I enter firstname jack then alert will comes out like jack login successfully) 我需要带警告框消息的写名字
本站网友 人工少女3中文语音
5分钟前 发表
handler
本站网友 七贤岭租房
3分钟前 发表
{ click
本站网友 糯米酒
23分钟前 发表
handler
本站网友 takeeasy
21分钟前 发表
false
本站网友 西安买房
27分钟前 发表
items