The application provides a temperature-
responsive polymer, which comprises a repeating unit shown in the following formula I; the formula I is a
polymerization product of two monomers of 2-(2-methoxyethoxy)
methyl acrylate (MEO2MA) and 2-(2-hydroxyethoxy)ethyl
methacrylate (HEO2MA); in the formula I, x is 1-100; y is 20-500. The smart window prepared from the temperature-
responsive polymer has the characteristics of wide
temperature response range, high light
transmittance, excellent heat insulation performance and long-term stability, and can be widely applied to light-collecting and temperature-controlling parts in various scenes such as residential buildings, commercial buildings and public facilities, and has significant energy-saving value and market prospect.