The invention relates to a simple automatic foaming and liquid discharging method for children hand sanitizer. The method comprises the steps of detecting the current emotional state of a child user when the child user is determined to exist in front of a hand sanitizer machine, recognizing whether the child user has the willingness to wash hands or not after the emotional state of the child user is determined, and when the child user is determined to need to wash hands, detecting the bacteria type, the skin type and the pollution degree of the to-be-cleaned palm part of the child user, and enabling the hand sanitizer machine to automatically output the foaming liquid which is matched with the current to-be-cleaned palm skin type of the child user and kills the bacteria type on the palm, so that the hand washing and cleaning requirements of the child user are met. Moreover, the palm skin of the child user is protected, and the damage of non-matched foaming liquid to the palm skin of the child user is avoided.