<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/1.5.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: 使用JavaScript驗證身份證號碼及其原理</title>
	<link>http://swf.com.tw/?p=94</link>
	<description>&#32178;&#26161;&#22810;&#23186;&#39636;</description>
	<pubDate>Wed, 08 Sep 2010 13:58:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=1.5.2</generator>

	<item>
 		<title>Comment on 使用JavaScript驗證身份證號碼及其原理 by: Gary</title>
		<link>http://swf.com.tw/?p=94#comment-39234</link>
		<pubDate>Mon, 22 Oct 2007 03:59:40 +0000</pubDate>
		<guid>http://swf.com.tw/?p=94#comment-39234</guid>
					<description>不好意思.我原來那段好像還是有點瑕疵.
這樣比較好點.

//規則一餘數為零，且檢查碼需為零
if (lastNum == 0 &amp;#38;&amp;#38; (total % 10) != lastNum ){
alert(\”身份證號碼寫錯了！\”);
return false;
}
//規則二餘數與檢查碼需相符
if (lastNum != 0 &amp;#38;&amp;#38; (10 - (total % 10))!= lastNum) {
alert(\”身份證號碼寫錯了！\”);
return false;
}</description>
		<content:encoded><![CDATA[	<p>不好意思.我原來那段好像還是有點瑕疵.<br />
這樣比較好點.</p>
	<p>//規則一餘數為零，且檢查碼需為零<br />
if (lastNum == 0 &amp;&amp; (total % 10) != lastNum ){<br />
alert(\”身份證號碼寫錯了！\”);<br />
return false;<br />
}<br />
//規則二餘數與檢查碼需相符<br />
if (lastNum != 0 &amp;&amp; (10 - (total % 10))!= lastNum) {<br />
alert(\”身份證號碼寫錯了！\”);<br />
return false;<br />
}
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on 使用JavaScript驗證身份證號碼及其原理 by: cubie</title>
		<link>http://swf.com.tw/?p=94#comment-38383</link>
		<pubDate>Thu, 18 Oct 2007 09:07:04 +0000</pubDate>
		<guid>http://swf.com.tw/?p=94#comment-38383</guid>
					<description>非常感謝 :mrgreen:</description>
		<content:encoded><![CDATA[	<p>非常感謝  <img src='http://swf.com.tw/wp-images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' />
</p>
]]></content:encoded>
				</item>
	<item>
 		<title>Comment on 使用JavaScript驗證身份證號碼及其原理 by: Gary</title>
		<link>http://swf.com.tw/?p=94#comment-38362</link>
		<pubDate>Thu, 18 Oct 2007 05:48:17 +0000</pubDate>
		<guid>http://swf.com.tw/?p=94#comment-38362</guid>
					<description>最後的檢查程式如果身份證尾碼為0的時候會有錯誤.
小弟把他增加了幾行.
//規則一餘數為零，且檢查碼需為零
if (lastNum == 0 &amp;#38;&amp;#38; (total % 10) != 0 ){
                     alert(\&quot;身份證號碼寫錯了！\&quot;);
	return false;
}
//規則二餘數與檢查碼需相符
if ((10 - (total % 10))!= lastNum) {
      	alert(\&quot;身份證號碼寫錯了！\&quot;);
	return false;
}</description>
		<content:encoded><![CDATA[	<p>最後的檢查程式如果身份證尾碼為0的時候會有錯誤.<br />
小弟把他增加了幾行.<br />
//規則一餘數為零，且檢查碼需為零<br />
if (lastNum == 0 &amp;&amp; (total % 10) != 0 ){<br />
                     alert(\&#8221;身份證號碼寫錯了！\&#8221;);<br />
	return false;<br />
}<br />
//規則二餘數與檢查碼需相符<br />
if ((10 - (total % 10))!= lastNum) {<br />
      	alert(\&#8221;身份證號碼寫錯了！\&#8221;);<br />
	return false;<br />
}
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
