用UUID创建一个随机不重复的ID..
JS也有自己的UUID
UUID.JS文件见附件下载...
使用方法:
1:引用uuid.js
<script type="javascript" src="uuid.js"></script>
2:创建UUID
<script type="text/javascript">
<script type="text/javascript"> var uuid = new UUID().createUUID(); <script>
<script type="javascript" src="uuid.js"></script>
<script type="text/javascript"> var uuid = new UUID().createUUID(); <script>