js获取guid:
var tid = guid();
/**
*获取id
*/
function guid() {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
var r = ()*16|0, v = c == 'x' ? r : (r&0x3|0x8);
return (16);
});
}
js获取guid:
var tid = guid();
/**
*获取id
*/
function guid() {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
var r = ()*16|0, v = c == 'x' ? r : (r&0x3|0x8);
return (16);
});
}