An application function implementation method, wherein the method comprises: establishing, by a first electronic device, a first wireless link by using a first wireless communications protocol; displaying, by the first electronic device, a first screen, wherein the first screen comprises a first control associated with to-be-shared data that a user of the first electronic device wants to share, and wherein the to-be-shared data comprises a service set identifier SSID of a wireless local area network and a password of the wireless local area network; receiving, by the first electronic device, a first operation performed on the first control; displaying, by the first electronic device, a shortcut menu in response to the first operation, wherein the shortcut menu comprises a second control, and the second control is configured to share the SSID and the password of the wireless local area network; receiving, by the first electronic device, a second operation performed on the second control; displaying, by the first electronic device, a discovery device list in response to the second operation, wherein the discovery device list comprises an identifier of a second electronic device; receiving, by the first electronic device, a third operation performed on the identifier of the second electronic device; in response to the third operation, establishing, by the first electronic device, a Bluetooth link to the second electronic device by using a Bluetooth protocol; sending, by the first electronic device, first information to the second electronic device by using the Bluetooth link, wherein the first information comprises the to-be-shared data with the SSID and the password, an operation code, and an identifier, and the identifier is used to indicate an application module, wherein the application module indicated by the identifier is a wireless fidelity Wi-Fi module in Settings, wherein the operation code is used to indicate to automatically access the wireless local area network by using the SSID and the password and the operation code is used to indicate an enabling manner of the to-be-shared data; receiving and parsing, by the second electronic device, the first information to obtain the to-be-shared data with the SSID and the password, the operation code, and the identifier; and providing, by the second electronic device, an on share service for the Wi-Fi module in Settings that is indicated by the identifier, and automatically accessing the wireless local area network by using the SSID and the password. establishing, by a first electronic device, a first wireless link by using a first wireless communications protocol; displaying, by the first electronic device, a first screen, wherein the first screen comprises a first control associated with to-be-shared data that a user of the first electronic device wants to share, and wherein the to-be-shared data comprises a service set identifier SSID of a wireless local area network and a password of the wireless local area network; receiving, by the first electronic device, a first operation performed on the first control; displaying, by the first electronic device, a shortcut menu in response to the first operation, wherein the shortcut menu comprises a second control, and the second control is configured to share the SSID and the password of the wireless local area network; receiving, by the first electronic device, a second operation performed on the second control; displaying, by the first electronic device, a discovery device list in response to the second operation, wherein the discovery device list comprises an identifier of a second electronic device; receiving, by the first electronic device, a third operation performed on the identifier of the second electronic device; in response to the third operation, establishing, by the first electronic device, a Bluetooth link to the second electronic device by using a Bluetooth protocol; sending, by the first electronic device, first information to the second electronic device by using the Bluetooth link, wherein the first information comprises the to-be-shared data with the SSID and the password, an operation code, and an identifier, and the identifier is used to indicate an application module, wherein the application module indicated by the identifier is a wireless fidelity Wi-Fi module in Settings, wherein the operation code is used to indicate to automatically access the wireless local area network by using the SSID and the password and the operation code is used to indicate an enabling manner of the to-be-shared data; receiving and parsing, by the second electronic device, the first information to obtain the to-be-shared data with the SSID and the password, the operation code, and the identifier; and providing, by the second electronic device, an on share service for the Wi-Fi module in Settings that is indicated by the identifier, and automatically accessing the wireless local area network by using the SSID and the password.