日期:2014-05-16 浏览次数:20379 次
<a href='javascript:;' onclick='logout()'>注销</a>
native void logout() /*-{
$wnd.logout = function() {
@com.***.***.MyClientClass::showconfirm()();
};
}-*/;
static void showconfirm(){
MessageBox.confirm("消息", "您确认要注销吗?", new Listener<MessageBoxEvent>() {
@Override
public void handleEvent(MessageBoxEvent be) {
if(be.getButtonClicked().getItemId().equals(Dialog.YES)){
//退出系统
}
}
});
}