A
touchpad includes: a protective layer; the touch structure layer is stacked on one side of the protective layer; the shielding layer is stacked on the side, away from the
protection layer, of the touch structure layer; the
electrochromism layer is stacked on the side, away from the touch structure layer, of the shielding layer, and the
electrochromism layer is changed into a transparent state from an atomized state when powered on; the pattern display layer is stacked on the side, away from the shielding layer, of the electrochromic layer, and patterns on the pattern display layer can be shielded or displayed by the electrochromic layer. According to the
touchpad, when the electrochromic layer is in the atomized state, the
touchpad only has a
touch function, when the electrochromic layer is in the transparent state, corresponding input operation can be executed according to the displayed pattern, and the functions of the touchpad are diversified; by arranging the shielding layer, the interference of the electrochromic layer on the touch structure layer can be reduced, and the touch effect of the touch structure layer can be guaranteed. The utility model further provides an electronic device which comprises a body and the touchpad, and the touchpad is arranged on the body.