javascript UUID—js

用UUID創建一個隨機不重復的ID..

JS也有自己的UUID

UUID.JS文件見附件下載…

使用方法:

1:引用uuid.js

Java代碼

<script type="javascript" src="uuid.js"></script> 

 

2:創建UUID

<script type="text/javascript">

Java代碼

<script type="text/javascript"> 

var uuid = new UUID().createUUID(); 

<script> 

uuid.rar (2.3 KB)

下載次數: 3

You May Also Like