A wireless communication method executed by a user equipment, UE, of a communication system, for determining a size of transport block, TBS, when performing communication between the UE and a base station, the method comprising: determining a downlink control information, DCI, format of DCI; obtaining a configuration type of a demodulation reference signal, DMRS, a quantity of symbols occupied by the DMRS, a quantity of symbols occupied by the transport block, and a position of a symbol occupied by the transport block; determining, based on the DCI format, the configuration type of the DMRS, the quantity of symbols occupied by the DMRS, the quantity of symbols occupied by the transport block, the position of a symbol occupied by the transport block, and a predefined correspondence, a quantity of resource elements occupied by the DMRS, wherein the DCI format is DCI format 0_0 or DCI format 1_0, and the predefined correspondence comprises a correspondence between the DCI format and the quantity of resource elements of the DMRS, wherein: the configuration type of the DMRS is DMRS configuration type 1, the quantity of symbols occupied by the DMRS is 1, the quantity of symbols occupied by the transport block is greater than or equal to 7, the position of a symbol occupied by the transport block comprises: a last symbol occupied by the transport block is on or follows a ninth symbol in a time unit used for transmission of the transport block, or an index of a last symbol occupied by the transport block is greater than or equal to 8, and the quantity of resource elements occupied by the DMRS is 12, 24, or 36; or, the configuration type of the DMRS is DMRS configuration type 1, the quantity of symbols occupied by the DMRS is 1, the quantity of symbols occupied by the transport block is less than 7, the position of a symbol occupied by the transport block comprises: a last symbol occupied by the transport block is previous to a ninth symbol in a time unit used for transmission of the transport block, or an index of a last symbol occupied by the transport block is less than 8, and the quantity of resource elements occupied by the DMRS is 6, 12, or 24; and determining the size of the TBS, based on the quantity of resource elements occupied by the DMRS. determining a downlink control information, DCI, format of DCI; obtaining a configuration type of a demodulation reference signal, DMRS, a quantity of symbols occupied by the DMRS, a quantity of symbols occupied by the transport block, and a position of a symbol occupied by the transport block; determining, based on the DCI format, the configuration type of the DMRS, the quantity of symbols occupied by the DMRS, the quantity of symbols occupied by the transport block, the position of a symbol occupied by the transport block, and a predefined correspondence, a quantity of resource elements occupied by the DMRS, wherein the DCI format is DCI format 0_0 or DCI format 1_0, and the predefined correspondence comprises a correspondence between the DCI format and the quantity of resource elements of the DMRS, wherein: the configuration type of the DMRS is DMRS configuration type 1, the quantity of symbols occupied by the DMRS is 1, the quantity of symbols occupied by the transport block is greater than or equal to 7, the position of a symbol occupied by the transport block comprises: a last symbol occupied by the transport block is on or follows a ninth symbol in a time unit used for transmission of the transport block, or an index of a last symbol occupied by the transport block is greater than or equal to 8, and the quantity of resource elements occupied by the DMRS is 12, 24, or 36; or, the configuration type of the DMRS is DMRS configuration type 1, the quantity of symbols occupied by the DMRS is 1, the quantity of symbols occupied by the transport block is less than 7, the position of a symbol occupied by the transport block comprises: a last symbol occupied by the transport block is previous to a ninth symbol in a time unit used for transmission of the transport block, or an index of a last symbol occupied by the transport block is less than 8, and the quantity of resource elements occupied by the DMRS is 6, 12, or 24; and the configuration type of the DMRS is DMRS configuration type 1, the quantity of symbols occupied by the DMRS is 1, the quantity of symbols occupied by the transport block is greater than or equal to 7, the position of a symbol occupied by the transport block comprises: a last symbol occupied by the transport block is on or follows a ninth symbol in a time unit used for transmission of the transport block, or an index of a last symbol occupied by the transport block is greater than or equal to 8, and the quantity of resource elements occupied by the DMRS is 12, 24, or 36; or, the configuration type of the DMRS is DMRS configuration type 1, the quantity of symbols occupied by the DMRS is 1, the quantity of symbols occupied by the transport block is less than 7, the position of a symbol occupied by the transport block comprises: a last symbol occupied by the transport block is previous to a ninth symbol in a time unit used for transmission of the transport block, or an index of a last symbol occupied by the transport block is less than 8, and the quantity of resource elements occupied by the DMRS is 6, 12, or 24; and determining the size of the TBS, based on the quantity of resource elements occupied by the DMRS.