MCPcopy
hub / github.com/jaweii/Vue-Layout / s4

Function s4

src/utils/guid.js:2–6  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1var guid = function() { //获取随机ID,组件拖到预览视图后就会被设置个ID
2 function s4() {
3 return Math.floor((1 + Math.random()) * 0x10000)
4 .toString(16)
5 .substring(1);
6 }
7 return s4() + s4() + '-' + s4()
8}
9export default guid

Callers 1

guidFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected