1. A device for stimulating neural regeneration, comprising: a photovoltaic component having a substrate, a first conductive layer, an active layer and a second conductive layer stacked in sequence; and an encapsulant for encapsulating the photovoltaic component with a portion of the first conductive layer and a portion of the second conductive layer exposed from the encapsulant, wherein the device is configured to be placed at a damaged portion of a nerve, and when the encapsulated photovoltaic component of the device is illuminated by red or near-infrared light, the encapsulated photovoltaic component has an energy conversion efficiency equal to or greater than 0.0016% at a wavelength of 500 to 1500 nm, and a photovoltage exists between the first conductive layer and the second conductive layer for producing an electric current, so as to stimulate neural regeneration of and repair the damaged portion of the nerves.