The bottom of the cab of the excavator is connected with an auxiliary chassis through a hydraulic cylinder, and the auxiliary chassis is connected with the chassis of the excavator through a rotating mechanism. During the construction process, when the driver’s line of sight is blocked due to insufficient height of the cab, the driver can control the extension of the hydraulic cylinder to raise the height of the cab, thereby widening the driver’s field of vision; After the obstruction condition is eliminated, the driver can control the hydraulic cylinder to retract, so that the height of the cab is lowered, as to lower the overall center of gravity and ensure the driving safety of the excavator.