So yeah, basically what is the difference between DOMString
and St开发者_运维问答ring
?
W3C:
For Java and ECMAScript, DOMString is bound to the String type because both languages also use UTF-16 as their encoding.
So, in terms of client-side stuff, I assume that there is no difference as DOMString is the equivalent of a String.
DOMString is a UTF-16 String. As JavaScript already uses such strings, DOMString is mapped directly to a String.
Mozilla Foundation
精彩评论