The utility model relates to head-mounted equipment compatible with a battery cap and a lamp holder, and belongs to the technical field of head-mounted equipment. The lighting device comprises a device body, a battery bin used for containing a battery is arranged on the device body, a battery cap is arranged on the battery bin, the lighting device further comprises a lighting lamp cap, the lighting lamp cap can be connected with the battery bin, when lighting is not needed, the battery cap is installed on the battery bin, and when lighting is needed, the lighting lamp cap is installed on the battery bin. The battery cap of the lighting lamp holder can be replaced to be connected with the battery bin, and the battery can supply power to the lighting lamp holder. According to the utility model, the battery cap and the lighting lamp holder can be compatible and interchanged, the battery cap or the lighting lamp holder can be selected on the battery compartment according to scene requirements without occupying other mounting spaces on the head-mounted equipment, the lighting function is increased without increasing too much weight, and too heavy burden cannot be brought to the head-mounted equipment; and meanwhile, the battery can be used for supplying power to meet the illumination requirement, so that the head-mounted equipment is wider in application.