1.腳本代碼
function showCreate(){
$('#createDialog').dialog({
title : '新增客戶經理'
},{
height : 580
},{
width : 780
},{
resizable : true
},{
modal : true
},{
show : 'clip'
}
);
}
2.觸發按鈕代碼
3.需要在dialog中顯示的div 默認設置為display:none;
4.關閉dialog的腳本代碼:
function closeDialog(){
$('.dialog').dialog('close');
}