MCPcopy Create free account
hub / github.com/circircir-circle/human_exist_device / randFilename

Method randFilename

mini_program/common/Tools.js:70–72  ·  view source on GitHub ↗

* 生成文件名 * @param {Object} file * @return {String}

(file)

Source from the content-addressed store, hash-verified

68 * @return {String}
69 */
70 randFilename(file) {
71 return this.randString(this.rand(10, 100)) + Date.parse(new Date()) + '.' + this.getFilenameExt(file)
72 }
73
74 /**
75 * 判断某个元素是否为字符串

Callers

nothing calls this directly

Calls 3

randStringMethod · 0.95
randMethod · 0.95
getFilenameExtMethod · 0.95

Tested by

no test coverage detected