An electrode device has a conductive body, a silver layer situated above the conductive body, a silver compound layer situated above the silver layer, a liquid absorbing and releasing element situated above the silver compound layer, a shielding element configured to cover an upper surface and a portion of a side surface of the liquid absorbing and releasing element, and a moving mechanism configured to move the shielding element reciprocally between at least two positions.