enabled attribute
Shows whether the menu item is active or not.
enabled
Access
read-write
Returns
boolean
Set throws
WindowException
INVALID_MODIFICATION_ERR: Raised if the object is a top-level menu item which cannot be disabled.
这对您有帮助吗?