简体   繁体   English

为什么我没有得到带有此代码的ExtJs消息框?

[英]Why don't i get ExtJs message box with this code?

Ext.application({ 
    name: 'HelloExt', 
    launch: function() { 
        Ext.MessageBox.alert('title', 'msg', Ext.emptyFn); 
    } 
});

Is there any error message? 是否有任何错误消息? My first guess would be that you're using dynamic loading and you haven't loaded the MessageBox before using it: 我的第一个猜测是您正在使用动态加载,而在使用它之前尚未加载MessageBox:

Ext.application({
    name: 'HelloExt',
    requires: ['Ext.window.MessageBox'],
    launch: function() {
        Ext.MessageBox.alert('title', 'msg', Ext.emptyFn);
    }
}); 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM