An electronic device , comprising: a casing , a display screen installed in the casing , and an ambient light sensor installed in the casing and disposed at an inner side of the display screen , wherein a side portion of the casing is provided with a light sensing hole , and the ambient light sensor perceives external ambient light signals input from the light sensing hole ; the electronic device being characterized by further comprising a proximity sensor , wherein the proximity sensor is configured to detect a distance between an external object and the electronic device so that the display screen is controlled to be turned on or off based on the distance between the external object and the electronic device ; the proximity sensor comprising a signal transmitter and a signal receiver both disposed at the inner side of the display screen ; the signal transmitter has a signal transmitting surface facing the display screen , the signal receiver has a signal receiving surface facing the display screen ; the signal transmitter is configured to transmit a detection signal to the outside, the detection signal is transmitted through the display screen and reflected by the external object thereby forming a reflected signal, the reflected signal transmits through the display screen and enters into the signal receiving surface of the signal receiver ; the ambient light sensor has a sensitive surface facing the light sensing hole , the signal transmitting surface and the signal receiving surface are both perpendicular to the light sensing surface of the ambient light sensor , the signal transmitter , the signal receiver , and the ambient light sensor are spaced apart from each other. a casing , a display screen installed in the casing , and an ambient light sensor installed in the casing and disposed at an inner side of the display screen , wherein a side portion of the casing is provided with a light sensing hole , and the ambient light sensor perceives external ambient light signals input from the light sensing hole ; the electronic device being characterized by further comprising a proximity sensor , wherein the proximity sensor is configured to detect a distance between an external object and the electronic device so that the display screen is controlled to be turned on or off based on the distance between the external object and the electronic device ; the proximity sensor comprising a signal transmitter and a signal receiver both disposed at the inner side of the display screen ; the signal transmitter has a signal transmitting surface facing the display screen , the signal receiver has a signal receiving surface facing the display screen ; the signal transmitter is configured to transmit a detection signal to the outside, the detection signal is transmitted through the display screen and reflected by the external object thereby forming a reflected signal, the reflected signal transmits through the display screen and enters into the signal receiving surface of the signal receiver ; the ambient light sensor has a sensitive surface facing the light sensing hole , the signal transmitting surface and the signal receiving surface are both perpendicular to the light sensing surface of the ambient light sensor , the signal transmitter , the signal receiver , and the ambient light sensor are spaced apart from each other. <EOS>