<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[刘新修]]></title> 
<link>http://pic1.liuxinxiu.com:80/index.php</link> 
<description><![CDATA[刘新修的个人博客 (Liuxinxiu'S Blog)]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[刘新修]]></copyright>
<item>
<link>http://pic1.liuxinxiu.com:80/node-uuid/</link>
<title><![CDATA[nodejs 提供了一个 node-uuid 模块用于生成 uuid:]]></title> 
<author>刘新修 &lt;admin@yourname.com&gt;</author>
<category><![CDATA[NodeJs平台]]></category>
<pubDate>Sun, 04 Sep 2016 06:07:02 +0000</pubDate> 
<guid>http://pic1.liuxinxiu.com:80/node-uuid/</guid> 
<description>
<![CDATA[ 
	<p><strong style="color: rgb(85, 85, 85); font-family: 'microsoft yahei'; font-size: 15px; line-height: 35px;"><span style="font-size: 18px;">首先执行：npm install node-uuid -g</span></strong></p><div class="codeText"><div class="codeHead">JavaScript代码</div><ol start="1" class="dp-c"><li class="alt"><span><span class="keyword">var</span><span> uuid = require(</span><span class="string">'node-uuid'</span><span>);</span></span></li><li class="alt">//var uuid = require('/usr/local/nodejs/lib/node_modules/node-uuid');</li><li><span>console.log(uuid.v1())&nbsp;&nbsp;&nbsp;&nbsp;</span></li><li class="alt"><span>console.log(uuid.v4())&nbsp;&nbsp;&nbsp;&nbsp;</span></li></ol></div><p style="margin-bottom: 0px;">注明：如果在linux下编译安装node可以使用软连接ls 或这直接写绝对路径引入需要的nmp模块!</p><p style="margin-bottom: 0px;"><font color="#555555" face="microsoft yahei"><span style="font-size: 15px; line-height: 35px;">v1 是基于时间戳生成uuid</span></font></p><p style="margin-bottom: 0px;"><font color="#555555" face="microsoft yahei"><span style="font-size: 15px; line-height: 35px;">v4是随机生成uuid</span></font></p><p style="margin-bottom: 0px;"><font color="#555555" face="microsoft yahei"><span style="font-size: 15px; line-height: 35px;">结果：</span></font></p><p style="margin-bottom: 0px;">&nbsp;</p><ol start="1" class="dp-c" style="border: none; color: rgb(92, 92, 92); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px; line-height: 35px; margin-right: 0px !important; margin-bottom: 1px !important; margin-left: 45px !important;"><li class="alt" style="border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(153, 153, 153); list-style: decimal-leading-zero outside; color: inherit; line-height: 18px; margin: 0px !important; padding: 0px 3px 0px 10px !important;"><span style="margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"><span style="margin: 0px; padding: 0px; border: none; background-color: inherit;">57af5b10-3a76-11e5-922a-75f42afeee38&nbsp;&nbsp;</span></span></li><li style="margin: 0px !important; padding: 0px 3px 0px 10px !important; border-style: none none none solid; border-left-width: 3px; border-left-color: rgb(153, 153, 153); list-style: decimal-leading-zero outside; color: rgb(85, 85, 85); line-height: 18px; background-color: rgb(248, 248, 248);"><span style="margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">f3917fb9-9bde-4ec1-a7cf-966251b3d22a&nbsp;&nbsp;</span></li></ol><br/>Tags - <a href="http://pic1.liuxinxiu.com:80/tags/node/" rel="tag">node</a> , <a href="http://pic1.liuxinxiu.com:80/tags/uuid/" rel="tag">uuid</a>
]]>
</description>
</item><item>
<link>http://pic1.liuxinxiu.com:80/node-uuid/#blogcomment</link>
<title><![CDATA[[评论] nodejs 提供了一个 node-uuid 模块用于生成 uuid:]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://pic1.liuxinxiu.com:80/node-uuid/#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>