An electronic device , comprising: a light-permeable display screen having a first surface and a second surface facing away from the first surface ; and an optical sensor arranged opposite to the second surface of the light-permeable display screen , the optical sensor comprising: a base plate ; an emitter coupled to the base plate ; and a receiver surrounding the emitter , wherein the receiver has a ring shape, and the optical sensor further comprises a separator arranged between the emitter and the receiver , wherein the emitter is configured to emit an infrared light to an external object, and the receiver is configured to receive the infrared light reflected by the external object so as to detect a distance from the external object to the optical sensor, and further configured to receive a visible light for detecting an ambient brightness so as to adjust a brightness of the light-permeable display screen according to the ambient brightness, wherein the second surface comprises a display area , and the light-permeable display screen is configured for light-emitting display through the first surface and the display area , characterized in that the optical sensor is arranged opposite to the display area , the display area comprises a first window region , the first window region is not coated with ink or other coatings, and the optical sensor is configured to emit an infrared light through the first window region and to receive the infrared light through the first window region , wherein the optical sensor is further configured to receive a visible light through the first window region . a light-permeable display screen having a first surface and a second surface facing away from the first surface ; and an optical sensor arranged opposite to the second surface of the light-permeable display screen , the optical sensor comprising: a base plate ; an emitter coupled to the base plate ; and a receiver surrounding the emitter , wherein the receiver has a ring shape, and the optical sensor further comprises a separator arranged between the emitter and the receiver , wherein the emitter is configured to emit an infrared light to an external object, and the receiver is configured to receive the infrared light reflected by the external object so as to detect a distance from the external object to the optical sensor, and further configured to receive a visible light for detecting an ambient brightness so as to adjust a brightness of the light-permeable display screen according to the ambient brightness, a base plate ; an emitter coupled to the base plate ; and a receiver surrounding the emitter , wherein the receiver has a ring shape, and the optical sensor further comprises a separator arranged between the emitter and the receiver , wherein the emitter is configured to emit an infrared light to an external object, and the receiver is configured to receive the infrared light reflected by the external object so as to detect a distance from the external object to the optical sensor, and further configured to receive a visible light for detecting an ambient brightness so as to adjust a brightness of the light-permeable display screen according to the ambient brightness, wherein the second surface comprises a display area , and the light-permeable display screen is configured for light-emitting display through the first surface and the display area , characterized in that the optical sensor is arranged opposite to the display area , the display area comprises a first window region , the first window region is not coated with ink or other coatings, and the optical sensor is configured to emit an infrared light through the first window region and to receive the infrared light through the first window region , wherein the optical sensor is further configured to receive a visible light through the first window region . <EOS>