Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite20eb63

Browse files
authored
debugEXAMPLE 7 (#511)
1 parentb89b18b commite20eb63

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎index.html‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -680,10 +680,10 @@ <h3>
680680
<preclass="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)

[8]ページ先頭

©2009-2025 Movatter.jp