Closed lieyongchang closed 4 years ago
Isn't it just the same, but removing type annotations?
Like this (see below) ??
Typescript: path: SVGPathElement; circle: SVGCircleElement;
Javascript let path = new SVGPathElement(); let circle = new SVGCircleElement();
if so, according to the demo, SVGPathElement & SVGCircleElement is not imported. I have a feeling there will be error.
Like this (see below) ??
Typescript: path: SVGPathElement; circle: SVGCircleElement;
Javascript let path = new SVGPathElement(); let circle = new SVGCircleElement();
if so, according to the demo, SVGPathElement & SVGCircleElement is not imported. I have a feeling there will be error.
Just in case for anyone who wants the Javascript version, this is the reference .
Inside the class, you would have to remove path: SVGPathElement
and all other class property type declarations. Something like this:
Thanks for the clarification! at least now i have some idea.
is there a Javascript version for this demo?