javascript GUID生成器实现代码


/jslib/other/IntUtil_post.js
大家先把上面的代码保存到本地。保存为IntUtil_post.js
测试代码:
复制代码 代码如下:

<script language="javascript" src="IntUtil_post.js"></script>
<script language="javascript">
<!--
alert($System.Math.IntUtil.genGUID());
alert($System.Math.IntUtil.genGUIDV4());
alert($System.Math.IntUtil.genRandomString(5));
//-->
</script>

« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3