diff options
Diffstat (limited to 'files/vi/web/api/eventsource/url/index.html')
| -rw-r--r-- | files/vi/web/api/eventsource/url/index.html | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/files/vi/web/api/eventsource/url/index.html b/files/vi/web/api/eventsource/url/index.html deleted file mode 100644 index 2af6554db0..0000000000 --- a/files/vi/web/api/eventsource/url/index.html +++ /dev/null @@ -1,59 +0,0 @@ ---- -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> |
