initMenuEvent method
Initializes the value of a MenuEvent created through the Window createEvent method. This method should only be called before the MenuEvent has been dispatched with the dispatchEvent method, though it may be called multiple times during that phase if necessary. If called multiple times, the final invocation takes precedence.
initMenuEvent(typeArg, canBubbleArg, cancelableArg )
Parameters
String typeArg
Specifies the event type.
boolean canBubbleArg
Specifies whether or not the event can bubble.
boolean cancelableArg
Specifies whether or not the event's default action can be prevented.
Returns
void
这对您有帮助吗?