A headset, comprising a connector of the headset configured to connect to a terminal, wherein the connector of the headset comprises at least one functional pin, the headset further comprises a sensor circuit and a logic control circuit, and the sensor circuit is connected to a functional pin of the connector of the headset by using the logic control circuit; the sensor circuit is configured to: sense a wearing status of the headset, and output a trigger signal to the logic control circuit when the wearing status changes; and the logic control circuit is configured to change, based on the trigger signal, a voltage value on the functional pin connected to the logic control circuit, to trigger the terminal to perform a target operation event based on a changed voltage value on the functional pin, wherein the target operation event is preset for the voltage value on the functional pin; wherein the connector of the headset specifically comprises a first functional pin and a second functional pin; the headset further comprises a voltage regulator, a comparator, and a first switching switch, the first switching switch comprises a first connection end, a second connection end, a first control end, and a first fixed end, the first control end is connected to the comparator, and the voltage regulator comprises a voltage regulation input end and a voltage regulation output end; and the comparator comprises a first voltage input end, a second voltage input end, and a comparison output end, the first voltage input end is connected to the first functional pin and is configured to input a voltage value on the first functional pin, and the second voltage input end is connected to the voltage regulation output end of the voltage regulator and is configured to input a reference voltage value; and the comparison output end is connected to the first control end of the first switching switch, and configured to output a comparison result, determine, based on the comparison result, whether the first functional pin is connected to a power supply circuit or a microphone circuit, and when determining that the first functional pin is connected to the power supply circuit is configured to control the first fixed end of the first switching switch to connect to the first connection end, or when determining that the first functional pin is connected to the microphone circuit, configured to control the first fixed end of the first switching switch to connect to the second connection end, wherein the microphone circuit and the power supply circuit are provided by the terminal. the sensor circuit is configured to: sense a wearing status of the headset, and output a trigger signal to the logic control circuit when the wearing status changes; and the logic control circuit is configured to change, based on the trigger signal, a voltage value on the functional pin connected to the logic control circuit, to trigger the terminal to perform a target operation event based on a changed voltage value on the functional pin, wherein the target operation event is preset for the voltage value on the functional pin; wherein the connector of the headset specifically comprises a first functional pin and a second functional pin; the headset further comprises a voltage regulator, a comparator, and a first switching switch, the first switching switch comprises a first connection end, a second connection end, a first control end, and a first fixed end, the first control end is connected to the comparator, and the voltage regulator comprises a voltage regulation input end and a voltage regulation output end; and the comparator comprises a first voltage input end, a second voltage input end, and a comparison output end, the first voltage input end is connected to the first functional pin and is configured to input a voltage value on the first functional pin, and the second voltage input end is connected to the voltage regulation output end of the voltage regulator and is configured to input a reference voltage value; and the comparison output end is connected to the first control end of the first switching switch, and configured to output a comparison result, determine, based on the comparison result, whether the first functional pin is connected to a power supply circuit or a microphone circuit, and when determining that the first functional pin is connected to the power supply circuit is configured to control the first fixed end of the first switching switch to connect to the first connection end, or when determining that the first functional pin is connected to the microphone circuit, configured to control the first fixed end of the first switching switch to connect to the second connection end, wherein the microphone circuit and the power supply circuit are provided by the terminal.