00005-js 获取uuid

admin.guid = function () {
    function S4() {
        return (((1+Math.random())*0x10000)|0).toString(16).substring(1);
    }
    return (S4()+S4()+"-"+S4()+"-"+S4()+"-"+S4()+"-"+S4()+S4()+S4());
}
原文地址:https://www.cnblogs.com/jianquan100/p/12913371.html