We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae5aa30 commit 8e6321bCopy full SHA for 8e6321b
1 file changed
5-network/12-server-sent-events/eventsource.view/index.html
@@ -2,9 +2,9 @@
2
<script>
3
let eventSource;
4
5
-function start() { // when "Start" button pressed
+function start() { // 当“Start”按钮被点击
6
if (!window.EventSource) {
7
- // IE or an old browser
+ // IE 或者很老的浏览器
8
alert("The browser doesn't support EventSource.");
9
return;
10
}
@@ -33,7 +33,7 @@
33
};
34
35
36
-function stop() { // when "Stop" button pressed
+function stop() { // 当“Stop”按钮被点击
37
eventSource.close();
38
log("eventSource.close()");
39
0 commit comments