Online courses in colleges and universities need professional equipment and settings for students to experience the operating environment, but the real equipment is expensive and the operating experimental conditions are limited, which results in the knowledge expression defects of professional courses. The development of virtual simulation laboratory can help the laboratory to realize the practice environment of 3D virtual simulation, which requires the integration of new technologies such as virtual reality into teaching. This paper adopts the latest GL3D Web design technology and Three. js related open source frameworks to design the system. With the help of the virtual laboratory, the whole experimental process and experimental results can be fed back to the virtual laboratory users in real time through three-dimensional visualization, which further improves the effect of experimental teaching and reduces the pressure of experimental work. Through virtual simulation technology, this paper builds a flexible teaching platform to promote the teaching function of controlling virtual equipment with the help of physical control system.