找了一个晚上没找到好的办法,难道只能取按钮的文字?
Ext.MessageBox.confirm(
'
Confirm
'
,
'
Confirm something?
'
,
function (btn) ... {
if(btn.text = "Yes")
alert('yes');
else
return;
} );
function (btn) ... {
if(btn.text = "Yes")
alert('yes');
else
return;
} );
原来是写错了,==写成了
Ext.MessageBox.confirm(
'
Confirm
'
,
'
Confirm something?
'
,
function (btn) ... {
if(btn == "yes")
alert('yes');
else
return;
} );
function (btn) ... {
if(btn == "yes")
alert('yes');
else
return;
} );