A method for compensating an operating parameter of a display circuit, the method is implemented by an electronic device comprising a display screen and a distance sensor disposed under the display screen, characterized in that the method comprises: acquiring an operating parameter of a target display circuit on the display screen, the operating parameter being an operating voltage of the target display circuit, acquiring an operation time period of the distance sensor, wherein the number of turned-on times of the distance sensor is accumulated each time the distance sensor is turned on, and the operation time period of the distance sensor is acquired according to the accumulated number of turned-on times and a preset value of a turned-on time period of the distance sensor; acquiring a compensation parameter of the distance sensor according to the operation time period, the compensation parameter of the distance sensor being positively correlated to the operation time period, whereby a query is performed in a compensation parameter database according to the operation time period, and the compensation parameter of the distance sensor is determined according to the query result, whereby the compensation parameter database indicates a correspondence relationship between compensation parameters and operation time periods; and compensating the operating parameter of the target display circuit according to the compensation parameter of the distance sensor to acquire a compensated operating parameter of the target display circuit, whereby the compensation parameter of the distance sensor and the operating parameter of the target display circuit are substituted into a preset compensation algorithm of the distance sensor for calculation, and the compensated operating parameter of the target display circuit is acquired according to the calculation result, or a query is performed in a sensor compensation database according to the compensation parameter of the distance sensor and the operating parameter of the target display circuit, and the compensated operating parameter of the target display circuit is acquired according to the query result, whereby the sensor compensation database indicates a correspondence relationship among compensation parameters of the distance sensor, operating parameters of the target display circuit and compensated operating parameters of the target display circuit. acquiring an operating parameter of a target display circuit on the display screen, the operating parameter being an operating voltage of the target display circuit, acquiring an operation time period of the distance sensor, wherein the number of turned-on times of the distance sensor is accumulated each time the distance sensor is turned on, and the operation time period of the distance sensor is acquired according to the accumulated number of turned-on times and a preset value of a turned-on time period of the distance sensor; acquiring a compensation parameter of the distance sensor according to the operation time period, the compensation parameter of the distance sensor being positively correlated to the operation time period, whereby a query is performed in a compensation parameter database according to the operation time period, and the compensation parameter of the distance sensor is determined according to the query result, whereby the compensation parameter database indicates a correspondence relationship between compensation parameters and operation time periods; and compensating the operating parameter of the target display circuit according to the compensation parameter of the distance sensor to acquire a compensated operating parameter of the target display circuit, whereby the compensation parameter of the distance sensor and the operating parameter of the target display circuit are substituted into a preset compensation algorithm of the distance sensor for calculation, and the compensated operating parameter of the target display circuit is acquired according to the calculation result, or a query is performed in a sensor compensation database according to the compensation parameter of the distance sensor and the operating parameter of the target display circuit, and the compensated operating parameter of the target display circuit is acquired according to the query result, whereby the sensor compensation database indicates a correspondence relationship among compensation parameters of the distance sensor, operating parameters of the target display circuit and compensated operating parameters of the target display circuit.