function s4() {
return Math.floor((1 + Math.random()) * 0x10000) .toString(16) .substring(1);
}
var guid= s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4();
转载于:https://www.cnblogs.com/52xiaopeng/p/3522721.html
function s4() {
return Math.floor((1 + Math.random()) * 0x10000) .toString(16) .substring(1);
}
var guid= s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4();
转载于:https://www.cnblogs.com/52xiaopeng/p/3522721.html