string water = "H" + "\x2082" + "O"; // You can split the string up if you want. string ammonia = "NH\x2083"; // Or not split it. string energy = "e=mc\x00B2"; // Most well-kNown,poorly understood equation. string PythagoreanTheorem = "a\x00B2+b\x00B2=c\x00B2"; \\ Also well-kNown.
3. Character reference.
Superscript:
0 : U+2070
1 : U+00B9
2 : U+00B2
3 : U+00B3
4-9 : U+2074-2079
+ : U+207A
- : U+207B
= : U+207C
( : U+207D
) : U+207E
n : U+207F
Subscript
0-9 : U+2080-2089
+ : U+208A
-: U+208B
=: U+208C
(: U+208D
): U+208E
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。