JS生成UUID的方法实例

时间:2023-02-24 23:44:20
<!DOCTYPE html>
<html>
<head>
<script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js">
</script>
<script>
var id=getUuid(); $(document).ready(function(){
$("p").click(function(){
alert(id);
});
}); function getUuid(){
var len=32;//32长度
var radix=16;//16进制
var chars='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');var uuid=[],i;radix=radix||chars.length;if(len){for(i=0;i<len;i++)uuid[i]=chars[0|Math.random()*radix];}else{var r;uuid[8]=uuid[13]=uuid[18]=uuid[23]='-';uuid[14]='4';for(i=0;i<36;i++){if(!uuid[i]){r=0|Math.random()*16;uuid[i]=chars[(i==19)?(r&0x3)|0x8:r];}}}
return uuid.join('');
} </script>
</head>
<body> <p>点我,生成UUID。</p> </body>
</html>

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbUAAAFDCAIAAAAyAweOAAAgAElEQVR4nO2dy27baN6nfRmNVGxL4irANNxdcWKtZ76uSuxoY2Dmq65EtnYNd1fZjvAhE9viUbQl2ZJtHbiZoO8h+6x734sAjV5mMxcwN1Cz4EGk+JI6mLak188PAUol8xGp019/viTfZ8W2batuq5phWnXbtk2rrmqGVbdt2zbMuqabddu2bVs3LN2wbNuu27amm4ZpAcZBwzTrzbPzy1qrozXamtU4vbhSWx3t4kq1GqeNttbqaOeXar151uxorY5mt2p2q9bqaM2OtiCgphvXN93+wHEcp9sb3Nz2Bo7jOM5tt3/b7TuOM3Ccm9tet9d3HKc/cK5vur3+wHGcXn8ACCgZuKJqumG6X367pmqm5X35VU2v170vv6Ybtm3btq3phldB6jZgHKypequjNdua1Tg5v3TrlGZefLy48uqU1Thptr06VW+etjpaq6PVm6dezVoAUNNN90NzfXM7GHgfmpvbruM4juPc3Ha9D9DAub657fbcT5vTub7p9R1AQMnAFU03Da85slXd8EqAVdd002+ULN2w6rZdt23dsIKuCjAOqprutmP15tm518dpVvPUq1ZXar155vd0Nbt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g2vhjfdZhxIcFVd1Y2MnuAQEfGMSvgF8BvwIgIH4Fzn/k/EdAQPwK8wLxKwACygTiV8CvgF8BEFAM4lfIEsSvAAgoE4hfIUsQvwIgoEwgfgX8CvgVAAHFIH4F/Ar4FQABxSB+hSxB/AqAgDKB+BWyBPErAALKBOJXwK+AXwEQUAziV8CvgF8BEFAMcn1hliDXFwICygTiV8CvgF8BEBC/An4F/AqAgNOA+BXwK+BXAAQUg/gVsgTxKwACygTiV8CvgF8BEDChfxQMsS2YtGCJQPwKgIAygfgV8CvgVwAExK/A+Y+c/wgIiF9hXiB+BUBAmUD8CvgV8CsAAopB/ApZgvgVAAFlAvErZAniVwAElAnEr4BfAb8CIKAY/P9Q36MIXRCrfwAAAABJRU5ErkJggg==" alt="" />

JS生成UUID的方法实例的更多相关文章

  1. js生成随机数的方法实例总结 &lbrack;收藏&rsqb;

    js生成随机数的方法实例总结 js生成随机数主要用到了内置的Math对象的random()方法.用法如:Math.random().它返回的是一个 0 ~ 1 之间的随机数.有了这么一个方法,那生成任 ...

  2. js生成随机数的方法实例总结

    js生成随机数主要用到了内置的Math对象的random()方法.用法如:Math.random().它返回的是一个 0 ~ 1 之间的随机数.有了这么一个方法,那生成任意随机数就好理解了.比如实际中 ...

  3. JS生成 UUID的方法

    方法一. function uuid() { var s = []; var hexDigits = "0123456789abcdef"; for (var i = 0; i & ...

  4. Oracle中生成uuid的方法

    Oracle中生成uuid的方法 下载LOFTER客户端 在Oracle SQL 提供了一个生成uuid的函数sys_guid: http://download.oracle.com/docs/cd/ ...

  5. 【js UUID】JS生成UUID 使用

    * 生成UUID * @returns */ function UUID() { var s = []; var hexDigits = "0123456789abcdef"; f ...

  6. js生成随机数的方法小结

    js生成随机数主要用到了内置的Math对象的random()方法.用法如:Math.random().它返回的是一个 0 ~ 1 之间的随机数.有了这么一个方法,那生成任意随机数就好理解了.比如实际中 ...

  7. js 生成 UUID

    在项目中遇到要生成 UUID 的需求,第一反应就是有没有原生的生成方法,找了找,发现没有,只能自己建立算法 function. 下面是我用的算法 function uuid(len, radix) { ...

  8. 很实用的js限制不让输入其他字符,只让输入数字和 js生成UUID

    onkeyup="this.value=this.value.replace(/\D/g,'')" js生产UUID var createUUID = (function (uui ...

  9. js生成二维码实例&lpar;真实有效&rpar;

    js文件  qrcode.js   代码 /*from tccdn minify at 2014-6-4 14:59:43,file:/cn/c/c/qrcode.js*/ /** * @fileov ...

随机推荐

  1. WCF与WebService的区别

    1.WebService:严格来说是行业标准,不是技术,使用XML扩展标记语言来表示数据(这个是夸语言和平台的关键).微软的Web服务实现称为ASP.NET Web Service.它使用Soap简单 ...

  2. spring mvc 处理流程整理

    1.  首先用户发送请求-->DispatcherServlet,前端控制器收到请求后自己不进行处理,而是委托给其他的解析器进行处理,作为统一访问点,进行全局的流程控制: 2.  Dispatc ...

  3. Django-rest-framework源码分析----权限

    添加权限 (1)API/utils文件夹下新建premission.py文件,代码如下: message是当没有权限时,提示的信息 # utils/permission.py class SVIPPr ...

  4. oracle 分析函数和开窗函数

    最近遇到一个需求,将查询出的数据按照地区分组,随机取出每个区域的2条数据,这里用到了oracle的分析和开窗函数: 最终写出的sql如下: select * from (select region,r ...

  5. tensorflow学习之(九)classification 分类问题之分类手写数字0-9

    #classification 分类问题 #例子 分类手写数字0-9 import tensorflow as tf from tensorflow.examples.tutorials.mnist ...

  6. C&num; 操作文件类,文件夹存在判断,创建,文件内容读写。

    此篇文档是老早就放到草稿箱中了,断断续续编辑了几次.结合自己经常用到的对于文件的操作,结合msdn做此文. 1.File 类 --转自msdn 常用方法: 名称 说明 AppendAllLines(S ...

  7. linux学习--目录切换命令 cd

  8. 11&period;使用ForwardAction实现页面屏蔽。

    转自:https://wenku.baidu.com/view/84fa86ae360cba1aa911da02.html 我们在jsp页面之间写链接总会是.../xxx.jsp,而如果我们想屏蔽掉具 ...

  9. PHP自定义生成二维码跳转地址

      比较简单的一款PHP自定义生成二维码跳转地址,手机端微信扫码,自动跳转到定义好的链接.支持自定义生成二维码尺寸.间距等.    鼠标悬浮显示二维码弹出层,离开后消失.js实现,代码如下: $(fu ...

  10. fedora 16 yum yuan

    暑假买了几本Linux的书一直放在书架上没看,周末闲着没事就拿起本<LinuxC从入门到精通>看了起来,初学Linux首先要做的便是在电脑上安装Linux系统.于是按书上的要求下载了Fed ...