开发者

In the W3 DOM specifications, what is the difference between String and DOMString

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜