첫째, 여기 내 코드입니다 :두 번째 Ext.Msg가 첫 번째 메시지 바로 뒤에 닫히는 이유는 무엇입니까?
Ext.Msg.show({
title: 'Username',
msg: 'Please enter your username',
buttons: Ext.MessageBox.OKCANCEL,
prompt:{ maxlength : 180, autocapitalize : false },
modal: true,
fn: function(buttonId, text) {
console.log("OK ("+text+"), what is you password?");
if (buttonId == 'ok')
{
Ext.Msg.show({
title: 'Password',
msg: 'Please enter your password',
buttons: Ext.MessageBox.OKCANCEL,
prompt:{ maxlength : 180, autocapitalize : false },
modal: true,
fn: function(buttonId2, text2) {
if (buttonId == 'ok')
{
console.log("OK ("+text+", "+text2+"), attempting login..");
}
},
icon: Ext.MessageBox.INFO
});
}
},
icon: Ext.MessageBox.INFO
});
내 문제는 내가 처음 메시지 박스에서 확인을 누르면, 두 번째는 두 번째 적은 다음 나타납니다 다음 날 두 번째에서 확인을 누르지 않고, 너무 닫이다 메세지 박스.
이상적으로는 당연히 동일한 사용자 이름과 비밀번호 입력을 동일한 Messagebox에 표시 하겠지만이를 수행하는 방법을 알 수는 없습니다.
모두에게 감사드립니다!
thnx for asking! 응답을위한 – headkit