The invention discloses a method and device for controlling an electronic expansion valve. The method for controlling the electronic expansion valve includes the steps of a, periodically obtaining the current outdoor environment temperature and the current frequency of a compressor, obtaining a first adjusting range of the electronic expansion valve according to the adjustment range, corresponding to the preset outdoor environment temperature, of the electronic expansion valve, obtaining a second adjusting range of the electronic expansion valve according to the adjustment range, corresponding to the preset frequency of the compressor, of the electronic expansion valve, b, obtaining the intersection of the first adjusting range of the electronic expansion valve and the second adjusting range of the electronic expansion valve, taking the intersection as a final adjusting range of the electronic expansion valve, c, obtaining the variation trend of exhaust gas temperature, and correspondingly adjusting the electronic expansion valve within the final adjusting range of the electronic expansion valve according to the variation trend of exhaust gas temperature. According to the method and device for controlling the electronic expansion valve, the electronic expansion valve is adjusted fast and reasonably under the control of the outdoor environment temperature factor adjusting range and the compressor frequency factor adjusting range and on the basis that the electronic expansion valve is controlled by the exhaust gas temperature.