我试图start
从下面调用按钮restart
它不起作用我该如何实现它?因为它在取消按钮情况下工作
$( "#flash_screen" ).dialog({
autoOpen: false,
height: 500,
width: 1050,
modal: true,
buttons: {
"Start": function() { alert('start');
},
restart: function(){
$( this ).dialog( "Start" );
},
Cancel: function() {
$( this ).dialog( "close" );
}
},
close: function() {
allFields.val( "" ).removeClass( "ui-state-error" );
}
});