A method for sharing data, performed by a terminal, the method comprising: displaying (102; 201) a data sharing interface, wherein the data sharing interface contains triggering areas respectively corresponding to data sources and association areas respectively corresponding to associated devices; and in response to a pairing operation between a widget of a triggering area and an icon of an association area, obtaining data from a target data source corresponding to the triggering area and transmitting the data to a target associated device corresponding to the association area, such that the data is output by the target associated device, wherein the method is characterized in that obtaining data from the target data source corresponding to the triggering area and transmitting the data to the target associated device corresponding to the association area comprises: in response to determining that the target data source is an audio module of the terminal, obtaining audio data from the audio module and transmitting the audio data to the target associated device corresponding to the association area, such that the target associated device outputs a sound signal based on the audio data; in response to determining that the target data source is a display module of the terminal, obtaining screen displaying data from the display module and transmitting the screen displaying data to the target associated device corresponding to the association area, such that the target associated device generates a mirror image of a screen of the terminal based on the screen displaying data and displays the mirror image; or in response to determining that the target data source is an application installed on the terminal, obtaining interface drawing data of an application interface from the application and transmitting the interface drawing data to the target associated device corresponding to the association area, such that the target associated device draws the application interface of the application based on the interface drawing data, and displays the application interface. displaying (102; 201) a data sharing interface, wherein the data sharing interface contains triggering areas respectively corresponding to data sources and association areas respectively corresponding to associated devices; and in response to a pairing operation between a widget of a triggering area and an icon of an association area, obtaining data from a target data source corresponding to the triggering area and transmitting the data to a target associated device corresponding to the association area, such that the data is output by the target associated device, wherein the method is characterized in that obtaining data from the target data source corresponding to the triggering area and transmitting the data to the target associated device corresponding to the association area comprises: in response to determining that the target data source is an audio module of the terminal, obtaining audio data from the audio module and transmitting the audio data to the target associated device corresponding to the association area, such that the target associated device outputs a sound signal based on the audio data; in response to determining that the target data source is a display module of the terminal, obtaining screen displaying data from the display module and transmitting the screen displaying data to the target associated device corresponding to the association area, such that the target associated device generates a mirror image of a screen of the terminal based on the screen displaying data and displays the mirror image; or in response to determining that the target data source is an application installed on the terminal, obtaining interface drawing data of an application interface from the application and transmitting the interface drawing data to the target associated device corresponding to the association area, such that the target associated device draws the application interface of the application based on the interface drawing data, and displays the application interface. in response to determining that the target data source is an audio module of the terminal, obtaining audio data from the audio module and transmitting the audio data to the target associated device corresponding to the association area, such that the target associated device outputs a sound signal based on the audio data; in response to determining that the target data source is a display module of the terminal, obtaining screen displaying data from the display module and transmitting the screen displaying data to the target associated device corresponding to the association area, such that the target associated device generates a mirror image of a screen of the terminal based on the screen displaying data and displays the mirror image; or in response to determining that the target data source is an application installed on the terminal, obtaining interface drawing data of an application interface from the application and transmitting the interface drawing data to the target associated device corresponding to the association area, such that the target associated device draws the application interface of the application based on the interface drawing data, and displays the application interface.