A processing method for a vibration waveform applicable to an electronic device that comprises a linear motor, the method comprising: obtaining a vibration description file; recognizing a waveform type described in the vibration description file; extracting a startup time and a stop time from the vibration description file in a case that the waveform type described in the vibration description file is a steady-state waveform; and processing an amplitude of the steady-state waveform within the startup time as being smoothly changed from zero to an amplitude of the linear motor in a steady vibration state, and processing an amplitude of the steady-state waveform within the stop time as being smoothly changed from the amplitude of the linear motor in the steady vibration state to zero, wherein the processing an amplitude of the steady-state waveform within the startup time as being smoothly changed from zero to an amplitude of the linear motor in a steady vibration state comprises: superimposing a first cosine waveform on the steady-state waveform within the startup time and superimposing a second cosine waveform on the steady-state waveform within the stop time, wherein the first cosine waveform has a same duration as that of the startup time and includes a same number of waveform values as the amplitude values of a plurality of time points included in the startup time, and wherein the waveform values of the first cosine waveform are in an opposite direction to the amplitude values at peaks of waveforms within the startup time and in a same direction as the amplitude values at troughs of the waveforms within the startup time, and wherein the second cosine waveform has a same duration as that of the stop time, and a value of each time point of the second cosine waveform is in an opposite direction to the amplitude values at peaks of waveforms within the stop time and in a same direction as the amplitude values at troughs of the waveforms within the stop time. obtaining a vibration description file; recognizing a waveform type described in the vibration description file; extracting a startup time and a stop time from the vibration description file in a case that the waveform type described in the vibration description file is a steady-state waveform; and processing an amplitude of the steady-state waveform within the startup time as being smoothly changed from zero to an amplitude of the linear motor in a steady vibration state, and processing an amplitude of the steady-state waveform within the stop time as being smoothly changed from the amplitude of the linear motor in the steady vibration state to zero, wherein the processing an amplitude of the steady-state waveform within the startup time as being smoothly changed from zero to an amplitude of the linear motor in a steady vibration state comprises: superimposing a first cosine waveform on the steady-state waveform within the startup time and superimposing a second cosine waveform on the steady-state waveform within the stop time, wherein the first cosine waveform has a same duration as that of the startup time and includes a same number of waveform values as the amplitude values of a plurality of time points included in the startup time, and wherein the waveform values of the first cosine waveform are in an opposite direction to the amplitude values at peaks of waveforms within the startup time and in a same direction as the amplitude values at troughs of the waveforms within the startup time, and wherein the second cosine waveform has a same duration as that of the stop time, and a value of each time point of the second cosine waveform is in an opposite direction to the amplitude values at peaks of waveforms within the stop time and in a same direction as the amplitude values at troughs of the waveforms within the stop time. superimposing a first cosine waveform on the steady-state waveform within the startup time and superimposing a second cosine waveform on the steady-state waveform within the stop time, wherein the first cosine waveform has a same duration as that of the startup time and includes a same number of waveform values as the amplitude values of a plurality of time points included in the startup time, and wherein the waveform values of the first cosine waveform are in an opposite direction to the amplitude values at peaks of waveforms within the startup time and in a same direction as the amplitude values at troughs of the waveforms within the startup time, and wherein the second cosine waveform has a same duration as that of the stop time, and a value of each time point of the second cosine waveform is in an opposite direction to the amplitude values at peaks of waveforms within the stop time and in a same direction as the amplitude values at troughs of the waveforms within the stop time.