File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -680,10 +680,10 @@ <h3>
680
680
< pre class ="example ">
681
681
<!-- controller.html -->
682
682
<script>
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"}' );
687
687
</script>
688
688
689
689
<!-- presentation.html -->
693
693
var spanElt = document.createElement("SPAN");
694
694
spanElt.lang = messageObj.lang;
695
695
spanElt.textContent = messageObj.string;
696
- document.appendChild(spanElt);
696
+ document.body. appendChild(spanElt);
697
697
};
698
698
</script>
699
699
</ pre >
You can’t perform that action at this time.
0 commit comments