A display method, applied to an electronic device , the method comprising: finding, by the electronic device, a plurality of devices within a first time period; displaying (S201), by the electronic device, a first window and a second window , wherein an identifier of to-be-shared content is displayed in the first window, identifiers corresponding to the plurality of devices are displayed in the second window, and the identifiers of the devices are displayed in the second window in a preset order; the identifiers of the devices comprises a first identifier and a second identifier; the electronic device displays the first identifier at a first position in the second window, and then displays the second identifier at a second position in the second window; detecting (S202), by the electronic device, a first operation of dragging the identifier of the to-be-shared content to the second window; stopping, by the electronic device, the display of the first identifier in a process of receiving the first operation; detecting, by the electronic device in the process of receiving the first operation, that a distance between the second identifier and the identifier of the to-be-shared content is less than a first value, detecting a second operation on the second identifier, and sharing the to-be-shared content with a device corresponding to the second identifier in response to the second operation; and controlling (S206), by the electronic device within a second time period from a moment when the electronic device stops the display of the first identifier to a moment when the electronic device detects the second operation, a display position of the second identifier in the second window to remain unchanged or displacement of a display position of the second identifier in the second window to be less than a second value; and adjusting, by the electronic device, positions of other identifiers after the first identifier disappears. finding, by the electronic device, a plurality of devices within a first time period; displaying (S201), by the electronic device, a first window and a second window , wherein an identifier of to-be-shared content is displayed in the first window, identifiers corresponding to the plurality of devices are displayed in the second window, and the identifiers of the devices are displayed in the second window in a preset order; the identifiers of the devices comprises a first identifier and a second identifier; the electronic device displays the first identifier at a first position in the second window, and then displays the second identifier at a second position in the second window; detecting (S202), by the electronic device, a first operation of dragging the identifier of the to-be-shared content to the second window; stopping, by the electronic device, the display of the first identifier in a process of receiving the first operation; detecting, by the electronic device in the process of receiving the first operation, that a distance between the second identifier and the identifier of the to-be-shared content is less than a first value, detecting a second operation on the second identifier, and sharing the to-be-shared content with a device corresponding to the second identifier in response to the second operation; and controlling (S206), by the electronic device within a second time period from a moment when the electronic device stops the display of the first identifier to a moment when the electronic device detects the second operation, a display position of the second identifier in the second window to remain unchanged or displacement of a display position of the second identifier in the second window to be less than a second value; and adjusting, by the electronic device, positions of other identifiers after the first identifier disappears. <EOS>