function S4() { return (((1+Math.random())*0x10000)|0).toString(16).substring(1); } function guid() { return (S4()+S4()+"-"+S4()+"-"+S4()+"-"+S4()+"-"+S4()+S4()+S4()); } var myID = "static" + guid(); console.log(myID)
js-关于唯一ID的创建
最新推荐文章于 2024-08-29 14:19:16 发布