Virtual reality (VR) technology has attracted a lot of attention in many fields, including entertainment, healthcare, education and industrial applications. As technology continues to advance, VR has become a powerful tool for psychological research to delve deeper into human cognition, emotion, and behavior. This thesis aims to study the relationship between virtual reality experience and user behavior from the perspective of psychology. By combining virtual reality technology and psychological theory, we explore how virtual reality affects users' perceptual, emotional, and cognitive processes, as well as users' behavior in virtual environments. We first review the development of virtual reality technology, including its definition, technical composition and application areas. We then propose a theoretical framework of psychology to explain the psychological mechanisms of virtual reality experience. This includes important concepts such as perception, attention, emotion, and cognitive load, which play a key role in understanding user behavior and experience in virtual reality. The experience of virtual reality includes not only visual and auditory perception, but also the emotional experience and physical perception of the user. We'll delve into how virtual reality creates immersion, evokes emotions, and changes the user's physical perception. At the same time, we will focus on the user's behavior in the virtual environment, including their actions, interactions and reactions. The research method is an important part of exploring virtual reality experience and user behavior. We will cover experimental design, data acquisition tools, and analytical methods to help researchers delve deeper into this area. In the empirical research section of this paper, we will present a series of specific studies that demonstrate how virtual reality affects user attention, emotion, cognition, and behavior. These studies will provide insights that will help us better understand the psychological effects of virtual reality. Finally, in the discussion and conclusion section, we will summarize the findings, discuss their connection to psychological theory, and make suggestions for future research. These studies are not only of great significance to the field of psychology, but also provide strong support for the application and improvement of virtual reality technology.