Easyui中 alert 帶回調函數的 消息框

帶回調函數的 消息框:函數

$.messager.alert({ 
    title:'消息', 
    msg:'電話號碼 只能是數字!',
    icon: 'info',
    width: 300,
    top:200 , //與上邊距的距離
       fn:function(){
          document.getElementById('dlg_tel_number').focus();//文本框 獲取焦點
          return;
       }
});
相關文章
相關標籤/搜索