User:机智的小鱼君/CustomModal

// $(function {  var CustomModalHeader = 'Header';  var CustomModalBody = 'Body';  $.showCustomModal(CustomModalHeader, CustomModalBody, { id: 'CustomModal', width: 600, buttons: [ {       defaultButton: true, id: 'ok', message: 'OK', handler: function { //ok function var ok_confirm = confirm('really?'); if (ok_confirm) { alert('ok!'); closeModal; } else { alert('no!'); closeModal; }       }      },      {        id: 'cancel', message: 'Cancel', handler: function { closeModal; }     },    ]  });  function closeModal {    $('#CustomModal').closeModal;  } });