标签:javascrip blog div function tostring guid imm dom .net
转载:
http://blog.csdn.net/limm33/article/details/51536529
代码:
function newGuid() { var guid = ""; for (var i = 1; i <= 32; i++){ var n = Math.floor(Math.random()*16.0).toString(16); guid += n; if((i==8)||(i==12)||(i==16)||(i==20)) guid += "-"; } return guid; }
标签:javascrip blog div function tostring guid imm dom .net
原文地址:http://www.cnblogs.com/tianhengblogs/p/7075439.html