An electronic device, comprising a first barometer (11, 21), a second barometer (12, 22), a heat dissipation fan and a processor (13, 23), wherein the first barometer (11, 21) is disposed on an external surface of the electronic device, and the second barometer (12, 22) is disposed inside the electronic device; the first barometer (11, 21) is configured to obtain a first atmospheric pressure on the external surface of the electronic device; the second barometer (12, 22) is configured to obtain a second atmospheric pressure inside the electronic device; the first barometer (11, 21) and the second barometer (12, 22) are connected to the processor (13, 23) by using an inter-integrated circuit bus or a serial peripheral interface bus, and the processor (13, 23) is a central processing unit, CPU, on a fan assembly or on a main control board in the electronic device, the processor (13, 23) is configured to determine, based on a difference between the second atmospheric pressure and the first atmospheric pressure, whether a heat dissipation status of the electronic device is normal, wherein the heat dissipation fan is disposed inside the electronic device, the heat dissipation fan has the fan assembly, when the heat dissipation fan works in a blowing heat dissipation mode: when it is determined that the difference between the second atmospheric pressure and the first atmospheric pressure is greater than a first preset threshold, determining that the heat dissipation status of the electronic device is normal; or when it is determined that the difference between the second atmospheric pressure and the first atmospheric pressure is less than or equal to the first preset threshold, determining that the heat dissipation status of the electronic device is abnormal; when the heat dissipation fan dissipates heat through suction: when it is determined that the difference between the second atmospheric pressure and the first atmospheric pressure is less than a second preset threshold, determining that the heat dissipation status of the electronic device is normal; or when it is determined that the difference between the second atmospheric pressure and the first atmospheric pressure is greater than or equal to the second preset threshold, determining that the heat dissipation status of the electronic device is abnormal. the first barometer (11, 21) is configured to obtain a first atmospheric pressure on the external surface of the electronic device; the second barometer (12, 22) is configured to obtain a second atmospheric pressure inside the electronic device; the first barometer (11, 21) and the second barometer (12, 22) are connected to the processor (13, 23) by using an inter-integrated circuit bus or a serial peripheral interface bus, and the processor (13, 23) is a central processing unit, CPU, on a fan assembly or on a main control board in the electronic device, the processor (13, 23) is configured to determine, based on a difference between the second atmospheric pressure and the first atmospheric pressure, whether a heat dissipation status of the electronic device is normal, wherein the heat dissipation fan is disposed inside the electronic device, the heat dissipation fan has the fan assembly, when the heat dissipation fan works in a blowing heat dissipation mode: when it is determined that the difference between the second atmospheric pressure and the first atmospheric pressure is greater than a first preset threshold, determining that the heat dissipation status of the electronic device is normal; or when it is determined that the difference between the second atmospheric pressure and the first atmospheric pressure is less than or equal to the first preset threshold, determining that the heat dissipation status of the electronic device is abnormal; when the heat dissipation fan dissipates heat through suction: when it is determined that the difference between the second atmospheric pressure and the first atmospheric pressure is less than a second preset threshold, determining that the heat dissipation status of the electronic device is normal; or when it is determined that the difference between the second atmospheric pressure and the first atmospheric pressure is greater than or equal to the second preset threshold, determining that the heat dissipation status of the electronic device is abnormal.