A smart terminal device, wherein the smart terminal device comprises a display panel, at least two ultrasonic sensors, a first infrared sensor, a second infrared sensor, and a processor, wherein each of the at least two ultrasonic sensors is configured to measure a distance between a target object and the ultrasonic sensor; the first infrared sensor is configured to continuously detect whether the target object exists on a first plane, and generate a first detection result; the second infrared sensor is configured to continuously detect whether the target object exists on a second plane, and generate a second detection result, wherein the first plane is different from the second plane; and the processor is configured to: when determining, based on the first detection result, that the target object enters a specified first space range from the first plane, obtain the distances measured by the at least two ultrasonic sensors, determine a location of a cursor on the display panel based on the distances measured by the at least two ultrasonic sensors, and control the display panel to display the cursor at the location, wherein the first plane is a border of the first space range; when determining, based on the second detection result, that the target object enters a specified second space range from the second plane, perform a confirmation operation based on the location of the cursor displayed on the display panel, wherein the second plane is a border of the second space range and the second space range is contained in the first space range; when determining, based on the second detection result, that the target object leaves the second space range from the second plane, stop performing the confirmation operation; and when determining, based on the first detection result, that the target object leaves the first space range from the first plane, stop displaying the cursor. each of the at least two ultrasonic sensors is configured to measure a distance between a target object and the ultrasonic sensor; the first infrared sensor is configured to continuously detect whether the target object exists on a first plane, and generate a first detection result; the second infrared sensor is configured to continuously detect whether the target object exists on a second plane, and generate a second detection result, wherein the first plane is different from the second plane; and the processor is configured to: when determining, based on the first detection result, that the target object enters a specified first space range from the first plane, obtain the distances measured by the at least two ultrasonic sensors, determine a location of a cursor on the display panel based on the distances measured by the at least two ultrasonic sensors, and control the display panel to display the cursor at the location, wherein the first plane is a border of the first space range; when determining, based on the second detection result, that the target object enters a specified second space range from the second plane, perform a confirmation operation based on the location of the cursor displayed on the display panel, wherein the second plane is a border of the second space range and the second space range is contained in the first space range; when determining, based on the second detection result, that the target object leaves the second space range from the second plane, stop performing the confirmation operation; and when determining, based on the first detection result, that the target object leaves the first space range from the first plane, stop displaying the cursor. when determining, based on the first detection result, that the target object enters a specified first space range from the first plane, obtain the distances measured by the at least two ultrasonic sensors, determine a location of a cursor on the display panel based on the distances measured by the at least two ultrasonic sensors, and control the display panel to display the cursor at the location, wherein the first plane is a border of the first space range; when determining, based on the second detection result, that the target object enters a specified second space range from the second plane, perform a confirmation operation based on the location of the cursor displayed on the display panel, wherein the second plane is a border of the second space range and the second space range is contained in the first space range; when determining, based on the second detection result, that the target object leaves the second space range from the second plane, stop performing the confirmation operation; and when determining, based on the first detection result, that the target object leaves the first space range from the first plane, stop displaying the cursor.