A time domain resource allocation method, comprising: determining N pieces of candidate time domain resource information, wherein N is greater than or equal to 2; and the N pieces of candidate time domain resource information comprise at least one of the following: a mapping type is a type B, K 0 is 0, S is 10, and L is 2; a mapping type is a type B, K 0 is 0, S is 8, and L is 2; a mapping type is a type B, K 0 is 0, S is 8, and L is 4; a mapping type is a type B, K 0 is 0, S is 8, and L is 6; a mapping type is a type B, K 0 is 0, S is 6, and L is 2; a mapping type is a type B, K 0 is 0, S is 6, and L is 4; a mapping type is a type B, K 0 is 0, S is 6, and L is 6; a mapping type is a type B, K 0 is 0, S is 6, and L is 7; a mapping type is a type B, K 0 is 0, S is 4, and L is 2; a mapping type is a type B, K 0 is 0, S is 4, and L is 4; or a mapping type is a type B, K 0 is 0, S is 4, and L is 6, wherein K 0 represents a slot offset and is used to indicate a slot in which a data channel is located, S represents a start symbol of the data channel in the slot, and L represents a symbol length of the data channel in the slot; and receiving indication information, wherein the indication information is to be used to indicate, from the N pieces of candidate time domain resource information, a time domain resource allocated to the data channel; wherein the determining N pieces of candidate time domain resource information comprises: determining the N pieces of candidate time domain resource information based on the following: a search space type of a downlink control channel for scheduling the data channel and a radio network temporary identifier RNTI used to perform cyclic redundancy check CRC scrambling on the downlink control channel that is for scheduling the data channel. determining N pieces of candidate time domain resource information, wherein N is greater than or equal to 2; and the N pieces of candidate time domain resource information comprise at least one of the following: a mapping type is a type B, K 0 is 0, S is 10, and L is 2; a mapping type is a type B, K 0 is 0, S is 8, and L is 2; a mapping type is a type B, K 0 is 0, S is 8, and L is 4; a mapping type is a type B, K 0 is 0, S is 8, and L is 6; a mapping type is a type B, K 0 is 0, S is 6, and L is 2; a mapping type is a type B, K 0 is 0, S is 6, and L is 4; a mapping type is a type B, K 0 is 0, S is 6, and L is 6; a mapping type is a type B, K 0 is 0, S is 6, and L is 7; a mapping type is a type B, K 0 is 0, S is 4, and L is 2; a mapping type is a type B, K 0 is 0, S is 4, and L is 4; or a mapping type is a type B, K 0 is 0, S is 4, and L is 6, wherein K 0 represents a slot offset and is used to indicate a slot in which a data channel is located, S represents a start symbol of the data channel in the slot, and L represents a symbol length of the data channel in the slot; and receiving indication information, wherein the indication information is to be used to indicate, from the N pieces of candidate time domain resource information, a time domain resource allocated to the data channel; wherein the determining N pieces of candidate time domain resource information comprises: determining the N pieces of candidate time domain resource information based on the following: a search space type of a downlink control channel for scheduling the data channel and a radio network temporary identifier RNTI used to perform cyclic redundancy check CRC scrambling on the downlink control channel that is for scheduling the data channel. a mapping type is a type B, K 0 is 0, S is 10, and L is 2; a mapping type is a type B, K 0 is 0, S is 8, and L is 2; a mapping type is a type B, K 0 is 0, S is 8, and L is 4; a mapping type is a type B, K 0 is 0, S is 8, and L is 6; a mapping type is a type B, K 0 is 0, S is 6, and L is 2; a mapping type is a type B, K 0 is 0, S is 6, and L is 4; a mapping type is a type B, K 0 is 0, S is 6, and L is 6; a mapping type is a type B, K 0 is 0, S is 6, and L is 7; a mapping type is a type B, K 0 is 0, S is 4, and L is 2; a mapping type is a type B, K 0 is 0, S is 4, and L is 4; or a mapping type is a type B, K 0 is 0, S is 4, and L is 6, wherein K 0 represents a slot offset and is used to indicate a slot in which a data channel is located, S represents a start symbol of the data channel in the slot, and L represents a symbol length of the data channel in the slot; and receiving indication information, wherein the indication information is to be used to indicate, from the N pieces of candidate time domain resource information, a time domain resource allocated to the data channel; wherein the determining N pieces of candidate time domain resource information comprises: determining the N pieces of candidate time domain resource information based on the following: a search space type of a downlink control channel for scheduling the data channel and a radio network temporary identifier RNTI used to perform cyclic redundancy check CRC scrambling on the downlink control channel that is for scheduling the data channel.