From 310fd066e91f454b990372ffa30e803cc8120975 Mon Sep 17 00:00:00 2001 From: Florian Merz Date: Thu, 11 Feb 2021 12:56:40 +0100 Subject: unslug zh-cn: move --- files/zh-cn/web/api/url/password/index.html | 57 ++++++++++++++++++++++ .../api/url/\345\257\206\347\240\201/index.html" | 57 ---------------------- 2 files changed, 57 insertions(+), 57 deletions(-) create mode 100644 files/zh-cn/web/api/url/password/index.html delete mode 100644 "files/zh-cn/web/api/url/\345\257\206\347\240\201/index.html" (limited to 'files/zh-cn/web/api/url') diff --git a/files/zh-cn/web/api/url/password/index.html b/files/zh-cn/web/api/url/password/index.html new file mode 100644 index 0000000000..1592676a9d --- /dev/null +++ b/files/zh-cn/web/api/url/password/index.html @@ -0,0 +1,57 @@ +--- +title: URL.密码 +slug: Web/API/URL/密码 +translation_of: Web/API/URL/password +--- +
{{ApiRef("URL API")}}
+ +

 {{domxref("URL")}}接口的password属性为{{domxref("USVString")}},其中包含在域名之前指定的密码。

+ +

如果在未设置username属性的情况下进行调用,默认失败。

+ +

{{AvailableInWorkers}}

+ +

语法

+ +
string = object.password;
+object.password = string;
+
+ +

+ +

A {{domxref("USVString")}}.

+ +

Examples

+ +
var url = new URL('https://anonymous:flabada@developer.mozilla.org/en-US/docs/Web/API/URL/password');
+var result = url.password; // Returns:"flabada"
+
+ +

规范

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('URL', '#dom-url-password', 'URL.password')}}{{Spec2('URL')}}Initial definition.
+ +

浏览器兼容

+ + + +

{{Compat("api.URL.password")}}

+ +

参见

+ + diff --git "a/files/zh-cn/web/api/url/\345\257\206\347\240\201/index.html" "b/files/zh-cn/web/api/url/\345\257\206\347\240\201/index.html" deleted file mode 100644 index 1592676a9d..0000000000 --- "a/files/zh-cn/web/api/url/\345\257\206\347\240\201/index.html" +++ /dev/null @@ -1,57 +0,0 @@ ---- -title: URL.密码 -slug: Web/API/URL/密码 -translation_of: Web/API/URL/password ---- -
{{ApiRef("URL API")}}
- -

 {{domxref("URL")}}接口的password属性为{{domxref("USVString")}},其中包含在域名之前指定的密码。

- -

如果在未设置username属性的情况下进行调用,默认失败。

- -

{{AvailableInWorkers}}

- -

语法

- -
string = object.password;
-object.password = string;
-
- -

- -

A {{domxref("USVString")}}.

- -

Examples

- -
var url = new URL('https://anonymous:flabada@developer.mozilla.org/en-US/docs/Web/API/URL/password');
-var result = url.password; // Returns:"flabada"
-
- -

规范

- - - - - - - - - - - - - - -
SpecificationStatusComment
{{SpecName('URL', '#dom-url-password', 'URL.password')}}{{Spec2('URL')}}Initial definition.
- -

浏览器兼容

- - - -

{{Compat("api.URL.password")}}

- -

参见

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