This paper points out that the universe is a set. The universe set contains the universe of every moment; the universe of a moment contains every single world-quantum at this moment; each single world-quantum contains a spiritual world-quantum and a material world-quantum. The author expounds the mathematical relationship between these physical quantities and establishes a new theory, that is, world-quantum theory. According to the viewpoint of the universe set, the author reveals the principle of time travel by applying perception function. This paper demonstrates that a person can travel back to the past by focusing on reminiscing and travel forth to the future with single-minded visualization.