An electronic device comprising an antenna, the electronic device comprising a metal shell, the antenna comprising: a radiating surface formed by the metal shell and having a slot group penetrated therethrough in an up and down direction of the metal shell, the slot group comprising a plurality of slots; a medium filling layer comprising a body part disposed on a lower surface of the metal shell and a plurality of filling parts disposed on an upper surface of the body part and filled in the plurality of slots respectively; and an excitation sheet disposed on a lower surface of the medium filling layer, wherein the plurality of slots comprise first to seventh slots (10221, 10222, 10223, 10224, 10225, 10226, 10227), characterized in that: the first to the third slots extend in an inner and outer direction of the metal shell and are perpendicular to a first edge of the metal shell, outer ends of the second and the third slot are open, each of the fourth to the seventh slots is perpendicular to the second slot; wherein a first end of the fourth slot is connected with an outer end of the first slot and the fourth slot extends from the outer end of the first slot in a first direction of the metal shell; wherein a first end of the fifth slot is connected with an inner end of the first slot and the fifth slot extends from the inner end of the first slot in a second direction of the metal shell opposite to the first direction of the metal shell, a second end of the fifth slot is connected with an inner end of the second slot; wherein a first end of the sixth slot is connected with the inner end of the second slot and the sixth slot extends from the inner end of the second slot in the second direction of the metal shell; wherein a first end of the seventh slot is connected with an inner end of the third slot and the seventh slot extends from the inner end of the third slot in the first direction of the metal shell, in which, the first direction is one of a right direction and a left direction of the metal shell, the second direction is the other one of the right direction and the left direction of the metal shell. a radiating surface formed by the metal shell and having a slot group penetrated therethrough in an up and down direction of the metal shell, the slot group comprising a plurality of slots; a medium filling layer comprising a body part disposed on a lower surface of the metal shell and a plurality of filling parts disposed on an upper surface of the body part and filled in the plurality of slots respectively; and an excitation sheet disposed on a lower surface of the medium filling layer, the first to the third slots extend in an inner and outer direction of the metal shell and are perpendicular to a first edge of the metal shell, outer ends of the second and the third slot are open, each of the fourth to the seventh slots is perpendicular to the second slot; wherein a first end of the fourth slot is connected with an outer end of the first slot and the fourth slot extends from the outer end of the first slot in a first direction of the metal shell; wherein a first end of the fifth slot is connected with an inner end of the first slot and the fifth slot extends from the inner end of the first slot in a second direction of the metal shell opposite to the first direction of the metal shell, a second end of the fifth slot is connected with an inner end of the second slot; wherein a first end of the sixth slot is connected with the inner end of the second slot and the sixth slot extends from the inner end of the second slot in the second direction of the metal shell; wherein a first end of the seventh slot is connected with an inner end of the third slot and the seventh slot extends from the inner end of the third slot in the first direction of the metal shell, in which, the first direction is one of a right direction and a left direction of the metal shell, the second direction is the other one of the right direction and the left direction of the metal shell.