A method for generating a haptic feedback, applied to a terminal, the method comprising: in response to an interface element on a display interface of the terminal being touched, determining a first interface element type corresponding to the interface element; determining, based on a matchup between interface element types and haptic effects, a first haptic effect corresponding to the first interface element type, wherein different interface element types correspond to different haptic effects; and generating a haptic feedback matching the first haptic effect, wherein the matchup between interface element types and haptic effects is preconfigured by: determining an interface element control among the interface elements, and determining the interface element type corresponding to the interface element control, wherein different interface element types correspond to different interface element control types, and the interface element control types comprise at least one of: a text list, a button, a switch, and a slider; and creating, for the interface element type, a haptic effect matching the interface element control type, characterized by in response to determining that a same interface element control type comprises different control operation attributes, creating different haptic effects for different control operation attributes by creating an emphasized haptic effect for an emphasized control operation, and creating a normal haptic effect for a normal control operation, wherein the emphasized haptic effect corresponding to the emphasized control operation is a vibration with a higher vibration level, and the normal haptic effect corresponding to the normal control operation is a vibration with a weaker vibration level, wherein the emphasized control operation is recommended by the terminal to be operated by a user. in response to an interface element on a display interface of the terminal being touched, determining a first interface element type corresponding to the interface element; determining, based on a matchup between interface element types and haptic effects, a first haptic effect corresponding to the first interface element type, wherein different interface element types correspond to different haptic effects; and generating a haptic feedback matching the first haptic effect, wherein the matchup between interface element types and haptic effects is preconfigured by: determining an interface element control among the interface elements, and determining the interface element type corresponding to the interface element control, wherein different interface element types correspond to different interface element control types, and the interface element control types comprise at least one of: a text list, a button, a switch, and a slider; and creating, for the interface element type, a haptic effect matching the interface element control type, characterized by in response to determining that a same interface element control type comprises different control operation attributes, creating different haptic effects for different control operation attributes by creating an emphasized haptic effect for an emphasized control operation, and creating a normal haptic effect for a normal control operation, wherein the emphasized haptic effect corresponding to the emphasized control operation is a vibration with a higher vibration level, and the normal haptic effect corresponding to the normal control operation is a vibration with a weaker vibration level, wherein the emphasized control operation is recommended by the terminal to be operated by a user. determining an interface element control among the interface elements, and determining the interface element type corresponding to the interface element control, wherein different interface element types correspond to different interface element control types, and the interface element control types comprise at least one of: a text list, a button, a switch, and a slider; and creating, for the interface element type, a haptic effect matching the interface element control type, characterized by in response to determining that a same interface element control type comprises different control operation attributes, creating different haptic effects for different control operation attributes by creating an emphasized haptic effect for an emphasized control operation, and creating a normal haptic effect for a normal control operation, wherein the emphasized haptic effect corresponding to the emphasized control operation is a vibration with a higher vibration level, and the normal haptic effect corresponding to the normal control operation is a vibration with a weaker vibration level, wherein the emphasized control operation is recommended by the terminal to be operated by a user.