From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/zh-cn/web/api/usvstring/index.html | 47 ++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 files/zh-cn/web/api/usvstring/index.html (limited to 'files/zh-cn/web/api/usvstring') diff --git a/files/zh-cn/web/api/usvstring/index.html b/files/zh-cn/web/api/usvstring/index.html new file mode 100644 index 0000000000..4500e1e2e2 --- /dev/null +++ b/files/zh-cn/web/api/usvstring/index.html @@ -0,0 +1,47 @@ +--- +title: USVString +slug: Web/API/USVString +tags: + - USVString + - unicode scalar values +translation_of: Web/API/USVString +--- +

{{APIRef("DOM")}}

+ +

USVString 对应 unicode 标量值的所有可能序列的集合。在JavaScript中返回时, USVString 映射到 {{JSxRef("String")}} 。它通常仅用于执行文本处理的 API,需要一串 unicode 标量值才能进行操作。除了不允许不成对的代理代码之外, USVString 等同于 {{DOMxRef("DOMString")}} 。 USVString 中存在的不成对的代理代码由浏览器转换为 Unicode '替换字符' U+FFFD, (�).

+ +

 

+ +

译注:

+ +

Unicode 标量值( Unicode scalar values ):字符的代号。

+ +

不成对的代理代码( Unpaired surrogate codepoints ):高代理代码后面没有低代理代码,或者低代理代码之前没有高代理代码。

+ +

 

+ +

规范

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName("WebIDL", "#idl-USVString", "USVString")}}{{Spec2("WebIDL")}}Initial definition.
+ +

另见

+ + -- cgit v1.2.3-54-g00ecf