1. 程式人生 > >easyui dialog 關閉按鈕怎麼去掉

easyui dialog 關閉按鈕怎麼去掉

取消右上角的按鈕使用 
closable: false

案例如下
$("#box").dialog({
   closable: false,
    width: 400,
    height: 250,
    title: '使用者詳情',
    modal: true,
    buttons: [{
        text: '關閉',
        iconCls: 'icon-cancel',
        handler: function () {
            $('#details').dialog('close');
        }
    }],
});