Home > Net >  How use javaScript to <defs> of <g> <text> set the text value?
How use javaScript to <defs> of <g> <text> set the text value?

Time:10-30

 












Contains a & lt; G> Which defines a & lt; Text> By & lt; Use> Show, then how to use js script for each & lt; Text> Setting up a text value?

CodePudding user response:

Js section may be more appropriate you,

Js, I almost forgotten,
Remember, that is, if it is a jquery is $(' use ') can get to all use nodes,
Then according to the subscript to modify

CodePudding user response:

G a id, so I can through the document. The getElementById (" default ") for

Behind the word also has the corresponding method, and what is "through & lt; Use & gt; Show "?

Then, this is an SVG, you are not usually HTML, SVG is general image data? Are you sure you want to operate it like this?

CodePudding user response:

If it is a & lt; Use> Shows that the key is multiple & lt; Use> Show, so, do not know how to deal with?
  • Related