A method for implementing link aggregation, executed by an electronic device, the method comprising: obtaining (101; 202) multiple wireless networks by performing network search, each wireless network corresponding to a respective access point device and a respective historical record of network resource allocation corresponding to a link aggregation; determining (102; 203) a respective target historical record of network resource allocation corresponding to each of at least one foreground application from multiple historical records of network resource allocation and obtaining multiple target historical records of network resource allocation, each wireless network corresponding to a respective target historical record of network resource allocation; determining (103; 204) a priority order of the multiple wireless networks based on the multiple target historical records of network resource allocation; and performing (104; 205) a link aggregation by selecting at least two wireless networks from the multiple wireless networks based on the priority order; characterized in that determining (102; 203) the respective target historical record of network resource allocation corresponding to each of the at least one foreground application from the multiple historical records of network resource allocation and obtaining the multiple target historical records of network resource allocation comprises: selecting one of the at least one foreground application as a target foreground application while the electronic device is in a preset operation mode; and determining a target historical record of network resource allocation corresponding to the target foreground application and the preset operation mode from the multiple historical records of network resource allocation corresponding to the multiple wireless networks, and obtaining the multiple target historical records of network resource allocation. obtaining (101; 202) multiple wireless networks by performing network search, each wireless network corresponding to a respective access point device and a respective historical record of network resource allocation corresponding to a link aggregation; determining (102; 203) a respective target historical record of network resource allocation corresponding to each of at least one foreground application from multiple historical records of network resource allocation and obtaining multiple target historical records of network resource allocation, each wireless network corresponding to a respective target historical record of network resource allocation; determining (103; 204) a priority order of the multiple wireless networks based on the multiple target historical records of network resource allocation; and performing (104; 205) a link aggregation by selecting at least two wireless networks from the multiple wireless networks based on the priority order; characterized in that determining (102; 203) the respective target historical record of network resource allocation corresponding to each of the at least one foreground application from the multiple historical records of network resource allocation and obtaining the multiple target historical records of network resource allocation comprises: selecting one of the at least one foreground application as a target foreground application while the electronic device is in a preset operation mode; and determining a target historical record of network resource allocation corresponding to the target foreground application and the preset operation mode from the multiple historical records of network resource allocation corresponding to the multiple wireless networks, and obtaining the multiple target historical records of network resource allocation.