增加当日统计接口

This commit is contained in:
刘祥超
2022-04-07 19:46:45 +08:00
parent c2b12419c7
commit ee0837571d
2 changed files with 10 additions and 0 deletions

View File

@@ -225,6 +225,12 @@ window.teaweb = {
max: max
}
},
splitFormat: function (s) {
let matchResult = s.match(/^([0-9.]+)([a-zA-Z]+)$/)
let size = parseFloat(matchResult[1])
let unit = matchResult[2]
return [size, unit]
},
popup: function (url, options) {
if (url != null && url.length > 0 && url.substring(0, 1) == '.') {
url = Tea.url(url)