A charging method for a cleaning robot, comprising: obtaining position information of a plurality of charging ports available for the cleaning robot; obtaining, when determining that the cleaning robot needs to be charged, current position information of the cleaning robot; determining a closest charging port from the plurality of charging ports which is the closest to a current position of the cleaning robot according to the position information of the plurality of charging ports and the current position information of the cleaning robot; and controlling the cleaning robot to move to the closest charging port to charge according to the position information of the closest charging port; characterized in that, determining that the cleaning robot needs to be charged comprises: determining that the cleaning robot needs to be charged when a remaining electric quantity of the cleaning robot is less than a preset value, wherein when the cleaning robot only performs a moving operation, the preset value is set to ensure the remaining electric quantity of the cleaning robot can support moving back to the closest charging port to charge; and when the cleaning robot performs the moving operation and a cleaning operation at the same time, the preset value is set to ensure the remaining electric quantity of the cleaning robot can support moving back to the closest charging port to charge as well as performing the cleaning operation; determining a second cleaning route starting from the closest charging port and directed to a target area which has not been cleaned by the cleaning robot, when charging the cleaning robot at the closest charging port is completed; controlling the cleaning robot to work along the second cleaning route to clean the target area. obtaining position information of a plurality of charging ports available for the cleaning robot; obtaining, when determining that the cleaning robot needs to be charged, current position information of the cleaning robot; determining a closest charging port from the plurality of charging ports which is the closest to a current position of the cleaning robot according to the position information of the plurality of charging ports and the current position information of the cleaning robot; and controlling the cleaning robot to move to the closest charging port to charge according to the position information of the closest charging port; characterized in that, determining that the cleaning robot needs to be charged comprises: determining that the cleaning robot needs to be charged when a remaining electric quantity of the cleaning robot is less than a preset value, wherein when the cleaning robot only performs a moving operation, the preset value is set to ensure the remaining electric quantity of the cleaning robot can support moving back to the closest charging port to charge; and when the cleaning robot performs the moving operation and a cleaning operation at the same time, the preset value is set to ensure the remaining electric quantity of the cleaning robot can support moving back to the closest charging port to charge as well as performing the cleaning operation; determining a second cleaning route starting from the closest charging port and directed to a target area which has not been cleaned by the cleaning robot, when charging the cleaning robot at the closest charging port is completed; controlling the cleaning robot to work along the second cleaning route to clean the target area. determining that the cleaning robot needs to be charged when a remaining electric quantity of the cleaning robot is less than a preset value, wherein when the cleaning robot only performs a moving operation, the preset value is set to ensure the remaining electric quantity of the cleaning robot can support moving back to the closest charging port to charge; and when the cleaning robot performs the moving operation and a cleaning operation at the same time, the preset value is set to ensure the remaining electric quantity of the cleaning robot can support moving back to the closest charging port to charge as well as performing the cleaning operation; determining a second cleaning route starting from the closest charging port and directed to a target area which has not been cleaned by the cleaning robot, when charging the cleaning robot at the closest charging port is completed; controlling the cleaning robot to work along the second cleaning route to clean the target area.