Porous and nanowire-structured NiO/AgNWs composite electrodes for significantly-enhanced supercapacitive and electrochromic performances