A method for network sharing, performed by an electronic device with a WIFI module and comprising: upon detecting a network-sharing enablement request, determining whether the electronic device has created two first network interfaces for WIFI network access through the WIFI module; releasing one of the two first network interfaces on condition that the electronic device has created the two first network interfaces through the WIFI module; and enabling network sharing once the one of the two first network interfaces is successfully released, wherein once the electronic device accesses two WIFI networks through the two first network interfaces, the step of releasing the one of the two first network interfaces comprises: determining at least two of a first numerical value, a second numerical value, a third numerical value, and a fourth numerical value, wherein the first numerical value is a total data amount sent by the electronic device using a first WIFI network of the two WIFI networks in the first time period, the second numerical value is a total data amount received by the electronic device using the first WIFI network in the first time period, the third numerical value is a total data amount sent by the electronic device using a second WIFI network of the two WIFI networks in the first time period, and the fourth numerical value is a total data amount received by the electronic device using the second WIFI network in the first time period, end time of the first time period being present moment; determining a target WIFI network based on the at least two of the first numerical value, the second numerical value, the third numerical value, and the fourth numerical value, the target WIFI network being one of the first WIFI network and the second WIFI network; and releasing a first network interface associated with the target WIFI network. upon detecting a network-sharing enablement request, determining whether the electronic device has created two first network interfaces for WIFI network access through the WIFI module; releasing one of the two first network interfaces on condition that the electronic device has created the two first network interfaces through the WIFI module; and enabling network sharing once the one of the two first network interfaces is successfully released, wherein once the electronic device accesses two WIFI networks through the two first network interfaces, the step of releasing the one of the two first network interfaces comprises: determining at least two of a first numerical value, a second numerical value, a third numerical value, and a fourth numerical value, wherein the first numerical value is a total data amount sent by the electronic device using a first WIFI network of the two WIFI networks in the first time period, the second numerical value is a total data amount received by the electronic device using the first WIFI network in the first time period, the third numerical value is a total data amount sent by the electronic device using a second WIFI network of the two WIFI networks in the first time period, and the fourth numerical value is a total data amount received by the electronic device using the second WIFI network in the first time period, end time of the first time period being present moment; determining a target WIFI network based on the at least two of the first numerical value, the second numerical value, the third numerical value, and the fourth numerical value, the target WIFI network being one of the first WIFI network and the second WIFI network; and releasing a first network interface associated with the target WIFI network. determining at least two of a first numerical value, a second numerical value, a third numerical value, and a fourth numerical value, wherein the first numerical value is a total data amount sent by the electronic device using a first WIFI network of the two WIFI networks in the first time period, the second numerical value is a total data amount received by the electronic device using the first WIFI network in the first time period, the third numerical value is a total data amount sent by the electronic device using a second WIFI network of the two WIFI networks in the first time period, and the fourth numerical value is a total data amount received by the electronic device using the second WIFI network in the first time period, end time of the first time period being present moment; determining a target WIFI network based on the at least two of the first numerical value, the second numerical value, the third numerical value, and the fourth numerical value, the target WIFI network being one of the first WIFI network and the second WIFI network; and releasing a first network interface associated with the target WIFI network.