【问题标题】:How to remove loader mask in iframe at the time of loading the url如何在加载 url 时删除 iframe 中的加载程序掩码
【发布时间】:2014-09-22 11:31:47
【问题描述】:

我想在加载 url 时隐藏 iframe 的默认加载器掩码

{
                    xtype: 'uxiframe',
                     listeners: {
                        afterrender: function () {
                                     this.load('https://www.google.pl/images/srpr/logo11w.png');
                        }
                     }
                }

【问题讨论】:

    标签: javascript iframe extjs extjs4.2


    【解决方案1】:
    items : [{
        xtype : "component",
        autoEl : {
            tag : "iframe",
            src : ...
        },
        listeners: {
            load: {
                element: 'el',
                fn: function () {
                    this.parent().unmask();
                }
            },
            render: function () {
                this.up('panel').body.mask("Loading...");
            }
        }
    
    }]
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-01-10
      • 2015-04-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-09-20
      相关资源
      最近更新 更多