1
저는 현재 Sencha Touch를 책에서 배우고 있습니다. 예를 따르는 것은 나를 위해 작동하지 않습니다Ext.MessageBox.show()가 메시지를 표시하지 않습니다.
Ext.require('Ext.data.Store');
Ext.require('Ext.dataview.List');
Ext.require('Ext.MessageBox');
new Ext.application({
name: 'TouchStart',
launch: function() {
this.viewport = new Ext.Panel ({
fullscreen: true,
items: [{
docked: 'top',
xtype: 'toolbar',
ui: 'light',
items: [{
text: 'Panic',
handler: function(){
Ext.Msg.alert('Don\'t Panic!','Keep calm');
}
},
{
text:'Greetings',
handler: function() {
Ext.Msg.prompt('Greetings!','What is your name?',
function (btn,text){
var response = new Ext.MessageBox().show({
title: 'Howdy',
msg: 'Pleased to meet you ' + text,
});
});
}
}]
}]
});
}
});
그리고 특히이 :이 프로그램을 실행할 때
new Ext.MessageBox().show({
title: 'Howdy',
msg: 'Pleased to meet you ' + text,
});
는, 제목 만 쇼, 어떤 메시지가 표시되지 않습니다 :
왜 이런 일이 발생했는지 아는 사람이 있습니까?
이 일이, 빠른 응답을 주셔서 대단히 감사합니다. 왜 이것이 문서 또는 다른 곳에서 언급되지 않는 이유는 무엇입니까? sencha.com에서 예제를 볼 때 'msg'가 – SnK
입니다. Configs – Fbo
myes oke에서 http://docs.sencha.com/touch/2-0/#!/api/Ext.MessageBox-cfg-message를 확인하십시오. 그러나 어떤 경우에도 사용되지 않습니다. – SnK