A wiring device, used to be connected to an electronic control box, the wiring device comprises a first terminal assembly and a second terminal assembly, the first terminal assembly comprising a first wiring terminal and a first sliding structure, the first wiring terminal is used to be connected to the electronic control box, and the first sliding structure is connected to a side surface of the first wiring terminal; the second terminal assembly comprises a second wiring terminal and a first guiding structure, and the first guiding structure is connected to a side surface of the second wiring terminal; both the first wiring terminal and the second wiring terminal are opened with a plurality of wiring holes extending in a first direction, the first sliding structure is connected to the first guiding structure, and the first sliding structure moves relative to the first guiding structure in the first direction; characterized in that: the second terminal assembly further comprises a mounting structure, and the mounting structure comprises a mounting body, a fixing buckle, an elastic member, and a positioning member; the mounting body is connected to a side surface of the second wiring terminal, and the mounting body is opened with a mounting hole and a positioning hole; both the fixing buckle and the positioning member are used to be connected to a first base included in a housing of an electronic component, and the positioning member extends into the positioning hole; the fixing buckle extends into the mounting hole and is buckled to the mounting body, and the elastic member is sleeved to the fixing buckle and used to abut between the mounting body and the first base. both the first wiring terminal and the second wiring terminal are opened with a plurality of wiring holes extending in a first direction, the first sliding structure is connected to the first guiding structure, and the first sliding structure moves relative to the first guiding structure in the first direction; characterized in that: the second terminal assembly further comprises a mounting structure, and the mounting structure comprises a mounting body, a fixing buckle, an elastic member, and a positioning member; the mounting body is connected to a side surface of the second wiring terminal, and the mounting body is opened with a mounting hole and a positioning hole; both the fixing buckle and the positioning member are used to be connected to a first base included in a housing of an electronic component, and the positioning member extends into the positioning hole; the fixing buckle extends into the mounting hole and is buckled to the mounting body, and the elastic member is sleeved to the fixing buckle and used to abut between the mounting body and the first base. the second terminal assembly further comprises a mounting structure, and the mounting structure comprises a mounting body, a fixing buckle, an elastic member, and a positioning member; the mounting body is connected to a side surface of the second wiring terminal, and the mounting body is opened with a mounting hole and a positioning hole; both the fixing buckle and the positioning member are used to be connected to a first base included in a housing of an electronic component, and the positioning member extends into the positioning hole; the fixing buckle extends into the mounting hole and is buckled to the mounting body, and the elastic member is sleeved to the fixing buckle and used to abut between the mounting body and the first base.