easyui更改messager的OkCancel按鈕為(中文)確定取消


jquery-easyui默認情況下,消息框的按鈕文字是英文的OK  Cancel,但可以通過提供的方法進行修改,如:

            $.extend($.messager.defaults,{
                ok:"確定",
                cancel:"取消"
            });
            $.messager.confirm('Confirm','Are you sure you want to delete record?',function(r){   
                if (r){   
                    alert('ok');   
                }   
            });  

如下圖:


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM