The invention relates to an energy-storage type cell and aims at providing the battery capable for using sunlight or electricity for charging. The battery takes a composite material of cobalt hydroxide and titanium dioxide as a positive electrode material and takes palladium or palladium-copper alloy as a negative electrode material, alkaline solution is added on the side of a positive electrode as cathode solution, acid solution is added on the side of a negative electrode as anode solution, cation exchange resin is taken as a diaphragm, the positive electrode and the negative electrode are isolated, the alkaline solution and the acid solution are also isolated, the alkaline solution is water solution of potassium hydroxide or sodium hydroxide, and the acid solution is water solution of hydrochloric acid or sulfuric acid. The charge way of the battery is expanded. The battery can not only be charged by using the traditional way and utilizing DC current, but also be charged by using the sunlight; the battery has no pollution and no carbon dioxide emissions, thereby being environment-friendly; the integration of power generation function and power storage function can lead a solar cell power generation device to be easy to realize miniaturization; and the battery can be extensively used in the fields of lighting, household appliances, meteorology, geology, petroleum, railway, aviation, traffic signals, special light sources in agriculture and animal husbandry and the like.