The invention provides a charging method for a shared charging cable and the shared charging cable. The charging method for the shared charging cable comprises the following steps: providing electronic equipment, the shared charging cable with a two-dimension code pattern and a charging socket; connecting the electronic equipment with the charging socket through the shared charging cable, precharging the electronic equipment, and simultaneously enabling the shared charging cable to begin to time; after preset charging time is reached, disconnecting the shared charging cable so that the precharging of the electronic equipment is finished; scanning the two-dimension code pattern in the shared charging cable and paying by the electronic equipment, and issuing a charging request; after the charging request is received by the shared charging cable, unlocking the shared charging cable for conduction, and charging the electronic equipment. Compared with the prior art, the charging method forthe shared charging cable provided by the invention can be used in virtue of self-service renting of the charging cable, and precharging for the electronic equipment in a power-off state can be realized.