()
| 365 | |
| 366 | }, |
| 367 | guid() { |
| 368 | return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { |
| 369 | const r = Math.random() * 16 | 0; |
| 370 | const v = c == 'x' ? r : (r & 0x3 | 0x8); |
| 371 | return v.toString(16); |
| 372 | }); |
| 373 | }, |
| 374 | // 获取随机颜色 |
| 375 | getRandomColor() { |
| 376 | const color = [] |
nothing calls this directly
no outgoing calls
no test coverage detected