diff options
author | Ryan Johnson <rjohnson@mozilla.com> | 2021-05-28 12:05:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-28 12:05:52 -0700 |
commit | 220a7d23b0755acc06146c1262aa09ba22d6e3b1 (patch) | |
tree | 50a6ffafe663dc65f1a0f8816862d60e7ce23a33 /files/zh-cn/web/api/rtcpeerconnection/ondatachannel/index.html | |
parent | 2958ec7e85c9a1182cd81728e3705948a2c39d71 (diff) | |
download | translated-content-220a7d23b0755acc06146c1262aa09ba22d6e3b1.tar.gz translated-content-220a7d23b0755acc06146c1262aa09ba22d6e3b1.tar.bz2 translated-content-220a7d23b0755acc06146c1262aa09ba22d6e3b1.zip |
Revert "replace some domxref macro calls with event macro calls (#1016)" (#1017)
This reverts commit 2958ec7e85c9a1182cd81728e3705948a2c39d71.
Diffstat (limited to 'files/zh-cn/web/api/rtcpeerconnection/ondatachannel/index.html')
-rw-r--r-- | files/zh-cn/web/api/rtcpeerconnection/ondatachannel/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/zh-cn/web/api/rtcpeerconnection/ondatachannel/index.html b/files/zh-cn/web/api/rtcpeerconnection/ondatachannel/index.html index eae0184677..418f180f79 100644 --- a/files/zh-cn/web/api/rtcpeerconnection/ondatachannel/index.html +++ b/files/zh-cn/web/api/rtcpeerconnection/ondatachannel/index.html @@ -5,7 +5,7 @@ translation_of: Web/API/RTCPeerConnection/ondatachannel --- <p>{{APIRef("WebRTC")}}{{SeeCompatTable}}</p> -<p><code><strong>RTCPeerConnection.ondatachannel </strong>属性</code>是一个{{event("Event_handlers")}},当这个{{event("datachannel")}}事件在{{domxref("RTCPeerConnection")}}发生时,它指定的那个事件处理函数就会被调用。这个事件继承于 {{domxref("RTCDataChannelEvent")}},当远方伙伴调用{{domxref("RTCPeerConnection.createDataChannel", "createDataChannel()")}}时这个事件被加到这个连接(RTCPeerConnection)中。</p> +<p><code><strong>RTCPeerConnection.ondatachannel </strong>属性</code>是一个{{domxref("EventHandler")}},当这个{{event("datachannel")}}事件在{{domxref("RTCPeerConnection")}}发生时,它指定的那个事件处理函数就会被调用。这个事件继承于 {{domxref("RTCDataChannelEvent")}},当远方伙伴调用{{domxref("RTCPeerConnection.createDataChannel", "createDataChannel()")}}时这个事件被加到这个连接(RTCPeerConnection)中。</p> <p>在这个事件被收到的同时,这个{{domxref("RTCDataChannel")}} 实际上并没有打开,确保在open这个事件在<code>RTCDataChannel</code>触发以后才去使用它。</p> |