<?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>Lopple &#187; javascript</title>
	<atom:link href="http://www.lopple.jp/?cat=31&#038;feed=rss2" rel="self" type="application/rss+xml" />
	<link>https://www.lopple.jp</link>
	<description>組込ソフト・機器開発／スマートフォンアプリ開発／Webシステム開発・保守</description>
	<lastBuildDate>Fri, 12 Jul 2019 07:40:18 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>もっとも美しいFizzBuzz(雰囲気)</title>
		<link>https://www.lopple.jp/?p=366</link>
		<comments>https://www.lopple.jp/?p=366#comments</comments>
		<pubDate>Mon, 11 Jun 2012 18:16:02 +0000</pubDate>
		<dc:creator>takezawa</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.lopple.jp/?p=366</guid>
		<description><![CDATA[jsによる配列とビット演算の妙。]]></description>
			<content:encoded><![CDATA[<pre class="brush: jscript; title: ; notranslate">
f='Fizz'; b='Buzz'; for(i=0;i&lt;100;i++,console.log([i,f,b,f+b][!(i%3)|!(i%5)&lt;&lt;1]));
</pre>
<p>jsによる配列とビット演算の妙。</p>
]]></content:encoded>
			<wfw:commentRss>https://www.lopple.jp/?feed=rss2&#038;p=366</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPressでプラグインを入れずに記事内でjavascriptを実行したい場合。</title>
		<link>https://www.lopple.jp/?p=332</link>
		<comments>https://www.lopple.jp/?p=332#comments</comments>
		<pubDate>Thu, 07 Jun 2012 19:15:33 +0000</pubDate>
		<dc:creator>takezawa</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.lopple.jp/?p=332</guid>
		<description><![CDATA[以上。 以下例。 実行 alert('Hello World!'); 変更されたくない場合はtextareaにreadonlyでもつける。というか別にtextareaでなくてもよい。]]></description>
			<content:encoded><![CDATA[<pre class="brush: xml; title: ; notranslate">
&lt;button onclick=&quot;eval(document.getElementById('code').value);&quot;&gt;実行&lt;/button&gt;
&lt;textarea id=&quot;code&quot;&gt;alert('Hello World!');&lt;/textarea&gt;
</pre>
<p>以上。</p>
<p>以下例。<br />
<button onclick="eval(document.getElementById('code').value);">実行</button><br />
<textarea id="code">alert('Hello World!');</textarea></p>
<p>変更されたくない場合はtextareaにreadonlyでもつける。というか別にtextareaでなくてもよい。</p>
]]></content:encoded>
			<wfw:commentRss>https://www.lopple.jp/?feed=rss2&#038;p=332</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NumberFormat javascriptで数値にカンマの追加</title>
		<link>https://www.lopple.jp/?p=241</link>
		<comments>https://www.lopple.jp/?p=241#comments</comments>
		<pubDate>Sun, 06 May 2012 19:48:27 +0000</pubDate>
		<dc:creator>takezawa</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.lopple.jp/?p=241</guid>
		<description><![CDATA[var numberFormat = function(num){ return num.toString().replace(/^\d+[^\.]/, function(t){return t.replace(/([\ &#8230; <a href="https://www.lopple.jp/?p=241">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<pre>var numberFormat = function(num){
  return num.toString().replace(/^\d+[^\.]/, function(t){return t.replace(/([\d]+?)(?=(?:\d{3})+$)/g, function(t){ return t + ','; });});
}</pre>
<p>小数点対応</p>
<p>参考：<a href="http://d.hatena.ne.jp/mtoyoshi/20090321/1237723345">http://d.hatena.ne.jp/mtoyoshi/20090321/1237723345</a></p>
]]></content:encoded>
			<wfw:commentRss>https://www.lopple.jp/?feed=rss2&#038;p=241</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
