<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ECMAScript（エクマスクリプト）6 | Men of Letters（メン・オブ・レターズ） &#8211; 論理的思考/業務改善/プログラミング</title>
	<atom:link href="https://laboratory.kazuuu.net/category/ecmascript%EF%BC%88%E3%82%A8%E3%82%AF%E3%83%9E%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%97%E3%83%88%EF%BC%896/feed/" rel="self" type="application/rss+xml" />
	<link>https://laboratory.kazuuu.net</link>
	<description></description>
	<lastBuildDate>Mon, 26 Oct 2020 01:55:45 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>

<image>
	<url>https://laboratory.kazuuu.net/wp-content/uploads/2021/02/cropped-L-32x32.png</url>
	<title>ECMAScript（エクマスクリプト）6 | Men of Letters（メン・オブ・レターズ） &#8211; 論理的思考/業務改善/プログラミング</title>
	<link>https://laboratory.kazuuu.net</link>
	<width>32</width>
	<height>32</height>
</image> 
<atom:link rel="hub" href="https://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="https://pubsubhubbub.superfeedr.com"/><atom:link rel="hub" href="https://websubhub.com/hub"/>	<item>
		<title>【JavaScript入門】Document.write() メソッド &#8211; 文字列（文章）の内容を表示する</title>
		<link>https://laboratory.kazuuu.net/document-write-method-displays-the-contents-of-a-string-sentence/</link>
					<comments>https://laboratory.kazuuu.net/document-write-method-displays-the-contents-of-a-string-sentence/#respond</comments>
		
		<dc:creator><![CDATA[小林]]></dc:creator>
		<pubDate>Mon, 26 Oct 2020 01:55:45 +0000</pubDate>
				<category><![CDATA[ECMAScript（エクマスクリプト）6]]></category>
		<category><![CDATA[JavaScript]]></category>
		<guid isPermaLink="false">https://laboratory.kazuuu.net/?p=3922</guid>

					<description><![CDATA[Document.write() メソッド &#8211; 文字列（文章）の内容を表示してみます。 目次 ■PC環境■Document.write() メソッドを使って文字列（文章）の内容を表示する■コード■実行・検証  [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Document.write() メソッド &#8211; 文字列（文章）の内容を表示してみます。</p>

  <div id="toc" class="toc tnt-number toc-center tnt-number border-element"><input type="checkbox" class="toc-checkbox" id="toc-checkbox-2" checked><label class="toc-title" for="toc-checkbox-2">目次</label>
    <div class="toc-content">
    <ol class="toc-list open"><li><a href="#toc1" tabindex="0">■PC環境</a></li><li><a href="#toc2" tabindex="0">■Document.write() メソッドを使って文字列（文章）の内容を表示する</a><ol><li><a href="#toc3" tabindex="0">■コード</a></li><li><a href="#toc4" tabindex="0">■実行・検証</a></li></ol></li></ol>
    </div>
  </div>

<h2><span id="toc1">■PC環境</span></h2>
<p>・Windows10</p>
<p>・簡単に書いたコードを共有ができる「jsFiddle（<a href="https://jsfiddle.net/">https://jsfiddle.net/</a>）」</p>
<h2><span id="toc2">■Document.write() メソッドを使って文字列（文章）の内容を表示する</span></h2>
<p>Document.write() メソッドを使って文字列（文章）の内容を表示してみます。</p>
<h3><span id="toc3">■コード</span></h3>
<p><script src="https://gist.github.com/kobayashikazu/ce27fb5f03eb57354c64611617dab2fa.js"></script></p>
<p>Document.write() メソッドを使って、文字列（文章）の内容を表示する場合は、括弧内に一重引用符（シングルクォーテーション）で囲んで表示させる文字列（文章）を入力します。今回の場合では、「書かれた文章が表示されます」としています。</p>
<p>Document.write() メソッドに入力された文字列（文章）がscriptタグによって読み込まれ処理が行われます。行われた結果、文字列（文章）が表示されます。</p>
<h3><span id="toc4">■実行・検証</span></h3>
<p>jsFiddle（<a href="https://jsfiddle.net/">https://jsfiddle.net/</a>）において、Document.write() メソッドを使って実際に文字列（文章）の内容が表示されるのかを確認します。</p>
<p><a href="https://laboratory.kazuuu.net/wp-content/uploads/2020/10/スクリーンショット-2020-10-26-105019.png"><img decoding="async" class="alignnone size-medium wp-image-3926" src="https://laboratory.kazuuu.net/wp-content/uploads/2020/10/スクリーンショット-2020-10-26-105019-300x146.png" alt="" width="300" height="146" srcset="https://laboratory.kazuuu.net/wp-content/uploads/2020/10/スクリーンショット-2020-10-26-105019-300x146.png 300w, https://laboratory.kazuuu.net/wp-content/uploads/2020/10/スクリーンショット-2020-10-26-105019-1024x500.png 1024w, https://laboratory.kazuuu.net/wp-content/uploads/2020/10/スクリーンショット-2020-10-26-105019-768x375.png 768w, https://laboratory.kazuuu.net/wp-content/uploads/2020/10/スクリーンショット-2020-10-26-105019.png 1164w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p>確認してみると、入力した文字列（文章）が表示されることが確認できました。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://laboratory.kazuuu.net/document-write-method-displays-the-contents-of-a-string-sentence/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
