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

Method getFilenameExt

mini_program/common/Tools.js:17–20  ·  view source on GitHub ↗

* 返回文件后缀 * @param {Object} file * @return {String}

(file)

Source from the content-addressed store, hash-verified

15 * @return {String}
16 */
17 getFilenameExt(file) {
18 const types = file.name.split('.')
19 return types[types.length - 1]
20 }
21
22 getCurrentDate() {
23 const date = new Date();

Callers 1

randFilenameMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected