js创建RowGuid

xiaoxiao2021-02-27  454

//创建唯一标识 function Guid() { 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; }
转载请注明原文地址: https://www.6miu.com/read-2756.html

最新回复(0)