A method for controlling a washing machine having a remote control function, comprising: after the washing machine being powered off unexpectedly and being restarted, the remote control function being controlled to be enabled or disabled according to an unlocked or a locked state of a door lock, wherein the control method comprises following steps: Step S1, after a washing machine is restarted, determining whether the door lock is in the locked state; if the determination result is YES, proceeding to Step S2; if the determination result is NO, proceeding to Step S3; Step S2, controlling the remote control function to be in the enabled state, continuing executing a program which is executed before a power failure of the washing machine, and proceeding to Step S4; Step S3, controlling the remote control function to be in the disabled state, controlling the washing machine to execute a standby process for waiting for sending a control instruction by the washing machine, and proceeding to Step S4; and Step S4, ending the control, wherein: in Step S3, when the washing machine is controlled to execute the standby process for waiting for the washing machine to send the control instruction, the washing machine also executes a prompt program for prompting the user to select to re-control the washing machine or to continue executing the program which is executed before the power failure of the washing machine, and the washing machine is controlled to execute a corresponding action according to a result selected by the user. after the washing machine being powered off unexpectedly and being restarted, the remote control function being controlled to be enabled or disabled according to an unlocked or a locked state of a door lock, wherein the control method comprises following steps: Step S1, after a washing machine is restarted, determining whether the door lock is in the locked state; if the determination result is YES, proceeding to Step S2; if the determination result is NO, proceeding to Step S3; Step S2, controlling the remote control function to be in the enabled state, continuing executing a program which is executed before a power failure of the washing machine, and proceeding to Step S4; Step S3, controlling the remote control function to be in the disabled state, controlling the washing machine to execute a standby process for waiting for sending a control instruction by the washing machine, and proceeding to Step S4; and Step S4, ending the control, wherein: in Step S3, when the washing machine is controlled to execute the standby process for waiting for the washing machine to send the control instruction, the washing machine also executes a prompt program for prompting the user to select to re-control the washing machine or to continue executing the program which is executed before the power failure of the washing machine, and the washing machine is controlled to execute a corresponding action according to a result selected by the user. Step S1, after a washing machine is restarted, determining whether the door lock is in the locked state; if the determination result is YES, proceeding to Step S2; if the determination result is NO, proceeding to Step S3; Step S2, controlling the remote control function to be in the enabled state, continuing executing a program which is executed before a power failure of the washing machine, and proceeding to Step S4; Step S3, controlling the remote control function to be in the disabled state, controlling the washing machine to execute a standby process for waiting for sending a control instruction by the washing machine, and proceeding to Step S4; and Step S4, ending the control, wherein: in Step S3, when the washing machine is controlled to execute the standby process for waiting for the washing machine to send the control instruction, the washing machine also executes a prompt program for prompting the user to select to re-control the washing machine or to continue executing the program which is executed before the power failure of the washing machine, and the washing machine is controlled to execute a corresponding action according to a result selected by the user.