A method for creating a desktop widget, characterized in that the method comprises: acquiring a desktop widget framework of the desktop widget, wherein the desktop widget framework is used to hold at least two desktop widget units, and the desktop widget framework comprises at least two desktop widget configuration areas; controlling, according to a first movement operation performed on a first desktop widget unit, the first desktop widget unit to move along a movement track of the first movement operation, wherein the first movement operation is used to move the first desktop widget unit; when the first movement operation ends, and an overlap ratio of the first desktop widget unit to the desktop widget configuration area in which the end point of the first movement operation is located is greater than or equal to a preset ratio, positioning the first desktop widget unit in the first specified desktop widget configuration area, wherein the first specified desktop widget configuration area is the blank desktop widget configuration area in which the first movement operation is located when the first movement operation ends; and the first desktop widget unit maps to the first application program; when the first movement operation ends, and an overlap ratio of the first desktop widget unit to a desktop widget configuration area in which an end point of the first movement operation is located is less than a preset ratio, positioning the first desktop widget unit in a third specified desktop widget configuration area, where the third specified desktop widget configuration area is a desktop widget configuration area in which the first desktop widget unit is located before the first movement operation starts; wherein the desktop widget framework comprises at least two desktop widget configuration areas; displaying more than one desktop widget framework of the desktop widget, whereby the number, display shapes, and location relationships of desktop widget configuration areas in the at least one desktop widget framework are different; and when a first touchscreen operation performed on any desktop widget framework in the more than one desktop widget framework is received, acquiring a desktop widget framework corresponding to the first touchscreen operation, wherein the first touchscreen operation is used to select a desktop widget framework from the more than one desktop widget framework. acquiring a desktop widget framework of the desktop widget, wherein the desktop widget framework is used to hold at least two desktop widget units, and the desktop widget framework comprises at least two desktop widget configuration areas; controlling, according to a first movement operation performed on a first desktop widget unit, the first desktop widget unit to move along a movement track of the first movement operation, wherein the first movement operation is used to move the first desktop widget unit; when the first movement operation ends, and an overlap ratio of the first desktop widget unit to the desktop widget configuration area in which the end point of the first movement operation is located is greater than or equal to a preset ratio, positioning the first desktop widget unit in the first specified desktop widget configuration area, wherein the first specified desktop widget configuration area is the blank desktop widget configuration area in which the first movement operation is located when the first movement operation ends; and the first desktop widget unit maps to the first application program; when the first movement operation ends, and an overlap ratio of the first desktop widget unit to a desktop widget configuration area in which an end point of the first movement operation is located is less than a preset ratio, positioning the first desktop widget unit in a third specified desktop widget configuration area, where the third specified desktop widget configuration area is a desktop widget configuration area in which the first desktop widget unit is located before the first movement operation starts; wherein the desktop widget framework comprises at least two desktop widget configuration areas; displaying more than one desktop widget framework of the desktop widget, whereby the number, display shapes, and location relationships of desktop widget configuration areas in the at least one desktop widget framework are different; and when a first touchscreen operation performed on any desktop widget framework in the more than one desktop widget framework is received, acquiring a desktop widget framework corresponding to the first touchscreen operation, wherein the first touchscreen operation is used to select a desktop widget framework from the more than one desktop widget framework.