This application discloses a control method applied to an electronic device, including: An electronic device may detect a user operation. The electronic device determines a target device based on the user operation. When the user operation is that a user pushes the electronic device in a direction close to the target device, the electronic device sends content displayed in the electronic device to the target device. When the user operation is that the user pulls the electronic device in a direction away from the target device, the electronic device sends a request to the target device. After receiving the request, the target device sends, to the electronic device, related information of a task currently being executed by the target device or a control instruction of the task being executed.