推荐关注
› Meteor
› JSLint - a JavaScript code quality tool
› jsFiddle
› D3.js
› WebStorm
推荐书目
› JavaScript 权威指南第 5 版
› Closure: The Definitive Guide
undef404

求教 Ext.js 的 messagebox 怎么从外部关闭

  •  
  •   undef404 · Oct 26, 2015 · 3264 views
    This topic created in 4039 days ago, the information mentioned may be changed or developed.
    Ext.Msg.alert('Status', 'Changes saved successfully.');
    
    Ext.Msg.prompt('Name', 'Please enter your name:', function(btn, text){
        if (btn == 'ok'){
        }
    });
    
    Ext.Msg.show({
       title:'Save Changes?',
       msg: 'Your are closing a tab that has unsaved changes. Would you like to save your changes?',
       buttons: Ext.Msg.YESNOCANCEL,
       fn: processResult,
       animEl: 'elId'
    });
    

    我想在 chrome 控制台里执行一段脚本,关闭这个对话框,怎么搞??

    追加
    我用 document.getElementById('id').click();可以关了
    但是目标页面只能在 ie6 里面显示,我怎么能找到他的 id ??

    Supplement 1  ·  Oct 26, 2015
    谢谢 我用一个 ie6 的 dom 查看器解决了
    9 replies  •  2015-10-27 09:40:11 +08:00
    aivier
    aivier
    Oct 26, 2015
    1
    Firebug Lite 或是看 Ext.js 源码
    pH
    pH
    Oct 26, 2015
    2
    震惊啊=-= 还能看到在用 Extjs 的。 因为我也在。
    saberlily
    saberlily
    Oct 26, 2015
    3
    @pH 握爪, 而且还是 3.X 版本...
    zomco
    zomco
    Oct 26, 2015 via Android
    4
    还有人在用 Ext ,该不会是某不仅仅是世界 500 强公司吧...
    ywu
    ywu
    Oct 26, 2015
    5
    ext 还不错啊,熟了以后开发速度嗷嗷快
    saximoer
    saximoer
    Oct 26, 2015
    6
    除了上手曲线高,学会以后 确实蛮好玩的。不同的风格。。
    EXTJS 6 现在也很灵活了
    saximoer
    saximoer
    Oct 27, 2015
    7
    配置个 ID 就可以了
    然后使用 EXT.GETCOMPMENT ( ID ) 拿到对象
    jerryhethatday
    jerryhethatday
    Oct 27, 2015
    8
    var yourMessageBox = Ext.ComponentQuery.query('yourIdentifier');
    for(var x = yourMessageBox.length; i < 0; i--)
    {
    // close here
    yourMessageBox


    }
    undef404
    undef404
    OP
    Oct 27, 2015
    9
    谢谢 搞定了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4644 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 03:15 · PVG 11:15 · LAX 19:15 · JFK 22:15
    ♥ Do have faith in what you're doing.