1. A method for realizing virtual handwriting input, comprising: obtaining, by an electronic apparatus, position coordinates of a handwriting apparatus in a virtual handwriting area through monitoring in a real-time manner, wherein the virtual handwriting area is an area in which a first distance-measuring detector and a second distance-measuring detector in the electronic apparatus are configured to perform distance measurement; detecting, by the first distance-measuring detector, a distance between the first distance-measuring detector and the handwriting apparatus in the virtual handwriting area to obtain a first distance value; detecting, by the second distance-measuring detector, a distance between the second distance-measuring detector and the handwriting apparatus in the virtual handwriting area to obtain a second distance value; obtaining the position coordinates of the handwriting apparatus in the virtual handwriting area through calculation according to the first distance value, the second distance value, and a value of a distance between the first distance-measuring detector and the second distance-measuring detector; obtaining a track formed by the position coordinates; obtaining a handwriting track of an entire handwriting input process when it is detected that a current handwriting input ends; identifying a character corresponding to the obtained handwriting track; and displaying the identified character.