MessageBox を表示したいだけです。しかし、エラーが発生します: TypeError: Ext.Msg is not a function
コントローラー内の私のコード:
..... Ext.MessageBox.show({
title:'Delete',
msg: 'Delete user <b>'+r.extraParams.username+'</b>',
buttons: Ext.MessageBox.YESNO,
fn: function(buttonId) {
var userId=r.extraParams.userId;
console.log(buttonId);
if (buttonId === "yes") {
Ext.Msg('OK', 'User deleted', 'success');
}
},
icon: Ext.MessageBox.QUESTION,
});....
ボタンをクリックすると、次のように表示されます: http://dev.sencha.com/deploy/ext-4.0.0/examples/message-box/msg-box.htmlあなたのブラウザが表示されます!何が間違っていますか?何か案は?ありがとう!