A method for wireless communication, comprising: performing, by a first terminal device, communication according to a first priority order in a case where there is a conflict between discontinuous sidelink communication between the first terminal device and a second terminal device, and discontinuous cellular communication between the first terminal device and a first network device, wherein the first priority order is determined according to service attributes and/or resource attributes; wherein the first terminal device is configured to perform the discontinuous sidelink communication with the second terminal device on a first time domain resource and the first terminal device is configured to perform the discontinuous cellular communication with the first network device on a second time domain resource; wherein the method further comprises: receiving, by the first terminal device, a first downlink signaling sent by the first network device, wherein the first downlink signaling comprises first indication information and second indication information, the first indication information is used for indicating the first time domain resource and the second indication information is used for indicating the second time domain resource; wherein the first time domain resource and the second time domain resource are discontinuous resources in a time domain; wherein the method is characterised by receiving, by the first terminal device, first information sent by the second terminal device, wherein the first information is used for indicating a first resource and a second resource, the first resource is a resource used by the second terminal device for performing the discontinuous cellular communication, and the second resource is a resource used by the second terminal device for performing the discontinuous sidelink communication with a third terminal device; and performing, by the first terminal device, the discontinuous sidelink communication with the second terminal device on a resource other than the resource indicated by the first information. performing, by a first terminal device, communication according to a first priority order in a case where there is a conflict between discontinuous sidelink communication between the first terminal device and a second terminal device, and discontinuous cellular communication between the first terminal device and a first network device, wherein the first priority order is determined according to service attributes and/or resource attributes; wherein the first terminal device is configured to perform the discontinuous sidelink communication with the second terminal device on a first time domain resource and the first terminal device is configured to perform the discontinuous cellular communication with the first network device on a second time domain resource; wherein the method further comprises: receiving, by the first terminal device, a first downlink signaling sent by the first network device, wherein the first downlink signaling comprises first indication information and second indication information, the first indication information is used for indicating the first time domain resource and the second indication information is used for indicating the second time domain resource; wherein the first time domain resource and the second time domain resource are discontinuous resources in a time domain; wherein the method is characterised by receiving, by the first terminal device, first information sent by the second terminal device, wherein the first information is used for indicating a first resource and a second resource, the first resource is a resource used by the second terminal device for performing the discontinuous cellular communication, and the second resource is a resource used by the second terminal device for performing the discontinuous sidelink communication with a third terminal device; and performing, by the first terminal device, the discontinuous sidelink communication with the second terminal device on a resource other than the resource indicated by the first information.