aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/websocket/url
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/api/websocket/url
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/zh-cn/web/api/websocket/url')
-rw-r--r--files/zh-cn/web/api/websocket/url/index.html51
1 files changed, 51 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/websocket/url/index.html b/files/zh-cn/web/api/websocket/url/index.html
new file mode 100644
index 0000000000..e28d09a725
--- /dev/null
+++ b/files/zh-cn/web/api/websocket/url/index.html
@@ -0,0 +1,51 @@
+---
+title: WebSocket.url
+slug: Web/API/WebSocket/url
+tags:
+ - API
+ - Property
+ - Refrence
+ - Web API
+ - WebSocket
+translation_of: Web/API/WebSocket/url
+---
+<p>{{APIRef("Web Sockets API")}}</p>
+
+<p>The <strong><code>WebSocket.url</code></strong> read-only property returns the absolute URL of the {{domxref("WebSocket")}} as resolved by the constructor.</p>
+
+<p><strong><code>WebSocket.url</code></strong>是一个只读属性,返回值为当构造函数创建{{domxref("WebSocket")}}实例对象时URL的绝对路径。</p>
+
+<h2 id="语法">语法</h2>
+
+<pre class="syntaxbox"><em>var url</em> = aWebSocket.url;</pre>
+
+<p> </p>
+
+<h2 id="返回值">返回值</h2>
+
+<p>A <a href="https://developer.mozilla.org/en-US/docs/Web/API/DOMString" title="DOMString is a UTF-16 String. As JavaScript already uses such strings, DOMString is mapped directly to a String."><code>DOMString</code></a>.</p>
+
+<h2 id="规范">规范</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">Specification</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comment</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName('HTML WHATWG', '#dom-websocket-url', 'WebSocket: url')}}</td>
+ <td>{{Spec2('HTML WHATWG')}}</td>
+ <td>Initial definition</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="浏览器兼容性">浏览器兼容性</h2>
+
+
+
+<p>{{Compat("api.WebSocket.url")}}</p>