Skip to content

Commit e20eb63

Browse files
authored
debug EXAMPLE 7 (#511)
1 parent b89b18b commit e20eb63

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -680,10 +680,10 @@ <h3>
680680
<pre class="example">
681681
&lt;!-- controller.html --&gt;
682682
&lt;script&gt;
683-
connection.send("{string: '你好,世界!', lang: 'zh-CN'}");
684-
connection.send("{string: 'こんにちは、世界!', lang: 'ja'}");
685-
connection.send("{string: '안녕하세요, 세계!', lang: 'ko'}");
686-
connection.send("{string: 'Hello, world!', lang: 'en-US'}");
683+
connection.send('{"string": "你好,世界!", "lang": "zh-CN"}');
684+
connection.send('{"string": "こんにちは、世界!", "lang": "ja"}');
685+
connection.send('{"string": "안녕하세요, 세계!", "lang": "ko"}');
686+
connection.send('{"string": "Hello, world!", "lang": "en-US"}');
687687
&lt;/script&gt;
688688

689689
&lt;!-- presentation.html --&gt;
@@ -693,7 +693,7 @@ <h3>
693693
var spanElt = document.createElement("SPAN");
694694
spanElt.lang = messageObj.lang;
695695
spanElt.textContent = messageObj.string;
696-
document.appendChild(spanElt);
696+
document.body.appendChild(spanElt);
697697
};
698698
&lt;/script&gt;
699699
</pre>

0 commit comments

Comments
 (0)