Since all SVG elements are just strings, some basic string operations are sufficient, as Listing 10 demonstrates.
由于所有svg元素都是字符串,所以一些基本的字符串操作就足够了,如清单10所示。
In addition to basic string support, you can store booleans, doubles, floats, integers, longs, and byte arrays (think serialization).
除支持基本的字符串之外,您还可以存储布尔值、双精度数、浮点数、整型数、长整型数和字节数组(考虑序列化)。
If you just want to output a basic string, use single quotes! There is a marginal performance benefit, since the string does not get parsed.
如果你只想输出一个基本的字符串,就用单引号吧,这样会节省一些资源。
应用推荐