A connector includes a substrate, a plurality of cables connected to a side of the substrate, and a plurality of terminals disposed on a surface of the substrate and electrically connected to the cables. Each of the terminals includes a connecting portion, a bending portion and an extending portion. The connecting portions are electrically connected to the corresponding cables. Each of the bending portions extends from the corresponding connecting portion and includes a turning segment. The extending portion is formed by extending from the corresponding bending portion toward a direction away from the surface of the substrate.