开发者

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

开发者 https://www.devze.com 2023-04-05 04:02 出处:网络
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 th

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

精彩评论

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