代码片段:dashArray[0]=i;  dashArray[1]=(100-i);  dashOffset=i*2;     if(this.localName==='path'){   $(this)    .attr('stroke','rgba('color.join(',')')')    .attr('stroke-dasharray',dashArray.join(','))