A wireless communication method, comprising: determining, by a terminal device, a target criterion for performing cell selection or cell reselection according to slice information of the terminal device and/or slice information of a network device, wherein the determining a target criterion comprises: determining, by the terminal device when a first condition is satisfied, that the target criterion is a first criterion, the first criterion indicating to perform the cell selection or cell reselection based on the slice information of the terminal device and/or the slice information of the network device, wherein the first condition comprises: the terminal device having obtained slice information required by the terminal device; and determining, by the terminal device when a second condition is satisfied, that the target criterion is a second criterion, the second criterion indicating not to perform the cell selection or cell reselection based on the slice information of the terminal device and/or the slice information of the network device, wherein the second condition comprises: the terminal device having not obtained slice information required by the terminal device; and performing, by the terminal device, the cell selection or cell reselection according to the target criterion. determining, by a terminal device, a target criterion for performing cell selection or cell reselection according to slice information of the terminal device and/or slice information of a network device, wherein the determining a target criterion comprises: determining, by the terminal device when a first condition is satisfied, that the target criterion is a first criterion, the first criterion indicating to perform the cell selection or cell reselection based on the slice information of the terminal device and/or the slice information of the network device, wherein the first condition comprises: the terminal device having obtained slice information required by the terminal device; and determining, by the terminal device when a second condition is satisfied, that the target criterion is a second criterion, the second criterion indicating not to perform the cell selection or cell reselection based on the slice information of the terminal device and/or the slice information of the network device, wherein the second condition comprises: the terminal device having not obtained slice information required by the terminal device; and determining, by the terminal device when a first condition is satisfied, that the target criterion is a first criterion, the first criterion indicating to perform the cell selection or cell reselection based on the slice information of the terminal device and/or the slice information of the network device, wherein the first condition comprises: the terminal device having obtained slice information required by the terminal device; and determining, by the terminal device when a second condition is satisfied, that the target criterion is a second criterion, the second criterion indicating not to perform the cell selection or cell reselection based on the slice information of the terminal device and/or the slice information of the network device, wherein the second condition comprises: the terminal device having not obtained slice information required by the terminal device; and performing, by the terminal device, the cell selection or cell reselection according to the target criterion.