範例如下:
//removePhoto.setWidgetListener("onClick", "alert('test');"); removePhoto.setWidgetListener("onClick", "if(!confirm('Remove Your Picture?')){evt.stop({au:true});}");
A client-side event listener could stop the sending of a widget event to the server by invoking Event.stop(Map) with
{au:true}
, such asevt.stop({au: true});
Reference:
ZK Client-side Reference/Notifications/Widget Events
ZK Client-side Reference/Communication/AU Requests/Client-side Firing
沒有留言:
張貼留言
留個話吧:)