An embodiment of the present application provides an electronic device, which can solve the problem of insufficient
layout area of the circuit board. The electronic device includes: a housing structure, at least including a first part and a second part, and the planes where the first part and the second part are located are different; a circuit board
assembly, located on one side of the housing structure; the circuit board
assembly has at least two
layers of circuit boards, and the at least two
layers of circuit boards at least include a first circuit board and at least one second circuit board arranged in a stacked manner, the first circuit board is located on the side of the second circuit board away from the housing structure, and the distance from the first part to the first circuit board is greater than the distance from the second part to the first circuit board; the circuit board includes a first surface and a second surface, functional devices are provided at positions of the circuit board
assembly corresponding to the first part, and the number of surfaces provided with functional devices is a first preset value, functional devices are provided at positions of the circuit board assembly corresponding to the second part, and the number of surfaces provided with functional devices is a second preset value, and the first preset value is greater than the second preset value.