Using confocal microscopy measurement technology to achieve online real-time measurement of grid corrosion in a high vacuum environment, which can effectively avoid the impact of repeated vacuum extraction on the life of the grid device, and greatly improve the speed and accuracy of grid corrosion detection. , The measurement accuracy can reach 0.008mm, providing accurate and detailed data support for the grid life test.