生成GUID的一个很不错的方法

xiaoxiao2021-02-28  66

function S4() { return (((1+Math.random())*0x10000)|0).toString(16).substring(1); } function guid() { return (S4()+S4()+"-"+S4()+"-"+S4()+"-"+S4()+"-"+S4()+S4()+S4()); } 更多详情请点击  http://blog.sina.com.cn/zhaojianjunzjj
转载请注明原文地址: https://www.6miu.com/read-75675.html

最新回复(0)