Guid

1 function guid() {
2     function S4() {
3        return (((1+Math.random())*0x10000)|0).toString(16).substring(1);
4     }
5     return (S4()+S4()+"-"+S4()+"-"+S4()+"-"+S4()+"-"+S4()+S4()+S4());
6 }
原文地址:https://www.cnblogs.com/studyshufei/p/8540816.html