The code e.attr("T",0)also .attr("T",1)sets the attributes for the node that is selected. That is, a new attribute “T” is created and set. The purpose of this is solely to facilitate stopping and resuming - 0 represents a transition to the beginning and 1 at the end.
If this attribute is included in the transition, the value will gradually change from 0 to 1. As the author of the textbook indicates, this can be used to get the state of the transition at any time - you just need to request the value "T". If you also save a specific transition, you can use the value to pause and resume at any time.
, "" . () . , - , .