日期:2014-05-17  浏览次数:20418 次

jquery-ui dialog buttons 按钮动态名称的问题
 $('#dialog').dialog({
                autoOpen: false,
                width: 600,
                modal: true,
                title: dialogTitle,
                buttons: {
                    "确定": function () {
                        alert('确定');
                    },                   
                    "关闭": function () {
                        $(this).dialog("close");
                    }
                }
               });


我想实现弹出了按钮“确定”两个字改在"确定新增",怎么办?


------解决方案--------------------
 $('#dialog').dialog({
                autoOpen: false,
                width: 600,
                modal: true,
                title: dialogTitle,