The restriction on electric products is mainly for lithium batteries. As long as the capacity of the lithium battery is not exceeded, it will not affect the ability to bring an electric shaver on board the airplane.
Mobile power supplies that do not exceed 100Wh can be carried on the airplane, while power supplies of 100-160Wh must be checked in.
Generally speaking, the rechargeable batteries for shavers are only a few Wh to a dozen Wh, so they can be taken on the airplane.
According to the "Technical Rules for Safe Air Transportation of Dangerous Goods" (2011-2012 edition):
Portable electronic devices containing lithium or lithium-ion battery cells or batteries for the personal use of passengers or crew members
(watches, calculators, cameras, cell phones, laptop computers, portable camcorders, etc.) should be carried on board as carried on board as hand baggage, and the lithium content of lithium metal batteries shall not exceed 2 grams, and the rated energy value of lithium-ion batteries shall not exceed 100Wh (watt-hours).
Lithium-ion batteries exceeding 100Wh but not exceeding 160Wh can be loaded on the equipment in the delivery baggage or hand baggage with the approval of the airline. Lithium batteries exceeding 160Wh are strictly prohibited.
Extended information:
Replacement batteries for portable electronic devices must be individually protected against short-circuiting (by placing in the original retail packaging or otherwise insulating the electrodes, e.g., taping the exposed electrodes, or by placing a tape over the exposed electrodes). exposed electrodes, or by placing each battery in a separate plastic bag or protective case) and may only be carried in hand luggage. Only two spare lithium batteries of 100-160Wh approved by the airline can be carried.
Passengers and crew members carrying wheelchairs or other similar mobility devices powered by lithium-ion batteries and portable medical electronic devices containing lithium metal or lithium-ion battery cells or batteries carried by passengers for medical purposes must be carried in accordance with the transportation and packaging requirements of the Technical Rules and approved by the airlines.
Civil Aviation Administration of China (CAAC)_Announcement on the Regulations on the Carriage of Lithium Batteries in the Baggage of Civil Aviation Passengers