A wireless keyboard, comprising: a keyboard body, a holder for placing a tablet computer, and a connection portion for movably connecting the keyboard body and the holder, a charging control module and a battery, wherein the charging control module is connected to the battery; wherein the connection portion comprises an accommodating cavity with an opening at an end, the accommodating cavity is used for accommodating an electronic stylus through the opening, and a wireless charging coil is arranged in the accommodating cavity; a charging interface and a wireless charging control module are arranged in the keyboard body, the wireless charging control module is connected to the charging interface, the wireless charging control module is connected to the wireless charging coil, and the charging control module is connected to the charging interface; the charging interface is configured to receive a direct current signal; the wireless charging control module is configured to convert, if it is detected that a direct current signal is inputted to the charging interface, the direct current signal into an alternating current signal and transmit the alternating current signal to the wireless charging coil; the wireless charging coil is configured to generate an alternating electromagnetic field in response to the alternating current signal, to wirelessly charge the electronic stylus accommodated in the accommodating cavity; the charging control module is configured to receive the direct current signal inputted from the charging interface, and use the direct current signal to charge the battery; a voltage stabilizing module is further arranged in the keyboard body, wherein that the wireless charging control module is connected to the charging interface comprises: the wireless charging control module is connected to the charging interface through the voltage stabilizing module; the voltage stabilizing module is configured to convert a voltage of a direct current signal from the charging interface into a working voltage of the wireless charging control module; and the wireless keyboard is configured to receive a wireless charging input of another device through the wireless charging coil. the connection portion comprises an accommodating cavity with an opening at an end, the accommodating cavity is used for accommodating an electronic stylus through the opening, and a wireless charging coil is arranged in the accommodating cavity; a charging interface and a wireless charging control module are arranged in the keyboard body, the wireless charging control module is connected to the charging interface, the wireless charging control module is connected to the wireless charging coil, and the charging control module is connected to the charging interface; the charging interface is configured to receive a direct current signal; the wireless charging control module is configured to convert, if it is detected that a direct current signal is inputted to the charging interface, the direct current signal into an alternating current signal and transmit the alternating current signal to the wireless charging coil; the wireless charging coil is configured to generate an alternating electromagnetic field in response to the alternating current signal, to wirelessly charge the electronic stylus accommodated in the accommodating cavity; the charging control module is configured to receive the direct current signal inputted from the charging interface, and use the direct current signal to charge the battery; a voltage stabilizing module is further arranged in the keyboard body, wherein that the wireless charging control module is connected to the charging interface comprises: the wireless charging control module is connected to the charging interface through the voltage stabilizing module; the voltage stabilizing module is configured to convert a voltage of a direct current signal from the charging interface into a working voltage of the wireless charging control module; and the wireless keyboard is configured to receive a wireless charging input of another device through the wireless charging coil.