怎么改确定和取消这两个字啊
怎么改确定和取消这两个字啊。我想改这两个字
怎么改确定和取消这两个字啊。我想改这两个字
2015-03-01
javascript 的选项是不能更改的
但是Jquery UI 能做到你要的东西
<!doctype html> <html> <head> <meta charset="utf-8"> <title>jQuery UI Dialog - Modal confirmation</title> <link rel="stylesheet" href="//code.jquery.com/ui/1.11.3/themes/smoothness/jquery-ui.css"> <script src="//code.jquery.com/jquery-1.10.2.js"></script> <script src="//code.jquery.com/ui/1.11.3/jquery-ui.js"></script> <link rel="stylesheet" href="/resources/demos/style.css"> <script> $(function() { $( "#dialog-confirm" ).dialog({ resizable: false, height:140, modal: true, buttons: { "选项一": function() { $( this ).dialog( "close" ); }, 选项二: function() { $( this ).dialog( "close" ); } } }); }); </script> </head> <body> <div id="dialog-confirm" title="标题"> <p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>These items will be permanently deleted and cannot be recovered. Are you sure?</p> </div> </body> </html>
举报