aboutsummaryrefslogtreecommitdiff
path: root/files/vi/web/api/eventsource/url
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:43:23 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:43:23 -0500
commit218934fa2ed1c702a6d3923d2aa2cc6b43c48684 (patch)
treea9ef8ac1e1b8fe4207b6d64d3841bfb8990b6fd0 /files/vi/web/api/eventsource/url
parent074785cea106179cb3305637055ab0a009ca74f2 (diff)
downloadtranslated-content-218934fa2ed1c702a6d3923d2aa2cc6b43c48684.tar.gz
translated-content-218934fa2ed1c702a6d3923d2aa2cc6b43c48684.tar.bz2
translated-content-218934fa2ed1c702a6d3923d2aa2cc6b43c48684.zip
initial commit
Diffstat (limited to 'files/vi/web/api/eventsource/url')
-rw-r--r--files/vi/web/api/eventsource/url/index.html59
1 files changed, 59 insertions, 0 deletions
diff --git a/files/vi/web/api/eventsource/url/index.html b/files/vi/web/api/eventsource/url/index.html
new file mode 100644
index 0000000000..2af6554db0
--- /dev/null
+++ b/files/vi/web/api/eventsource/url/index.html
@@ -0,0 +1,59 @@
+---
+title: EventSource.url
+slug: Web/API/EventSource/url
+translation_of: Web/API/EventSource/url
+---
+<div>{{APIRef('WebSockets API')}}</div>
+
+<p><code><strong>url</strong></code> là thuộc tính chỉ đọc của giao diện {{domxref("EventSource")}} trả về {{domxref("DOMString")}} đại diện cho URL của nguồn.</p>
+
+<h2 id="Cú_pháp">Cú pháp</h2>
+
+<pre class="syntaxbox">var myUrl = eventSource.url;</pre>
+
+<h3 id="Giá_trị">Giá trị</h3>
+
+<p>{{domxref("DOMString")}} đại diện cho URL của nguồn.</p>
+
+<h2 id="Ví_dụ">Ví dụ</h2>
+
+<pre class="brush: js">var evtSource = new EventSource('sse.php');
+console.log(evtSource.url);</pre>
+
+<div class="note">
+<p><strong>Ghi chú: </strong>bạn có thể xem ví dụ đầy đủ trên GitHub — xem <a href="https://github.com/mdn/dom-examples/tree/master/server-sent-events">Simple SSE demo using PHP.</a></p>
+</div>
+
+<h2 id="Thông_số_kĩ_thuật">Thông số kĩ thuật</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">Thông số kĩ thuật</th>
+ <th scope="col">Trạng thái</th>
+ <th scope="col">Chú thích</th>
+ </tr>
+ <tr>
+ <td>{{SpecName('HTML WHATWG', "comms.html#dom-eventsource-url", "url")}}</td>
+ <td>{{Spec2('HTML WHATWG')}}</td>
+ <td>Định nghĩa ban đầu</td>
+ </tr>
+ </tbody>
+</table>
+
+<ul>
+</ul>
+
+<h2 id="Trình_duyệt_tương_thích">Trình duyệt tương thích</h2>
+
+<div>
+
+
+<p>{{Compat("api.EventSource.url")}}</p>
+</div>
+
+<h2 id="Liên_quan">Liên quan</h2>
+
+<ul>
+ <li>{{domxref("EventSource")}}</li>
+</ul>