w
единственное что я смог придумать
Size: a a a
w
w
РБ
РБ
РБ
w
performance.noww
РБ
performance.noww
РБ
constructor() {
this.timestamp = new Date()
}
get realTime() {
const date = new Date()
date.setTime(date - this.timestamp)
const hours = date.getHours() < 10 ? `0${date.getHours()}` : date.getHours()
const minutes = date.getMinutes() < 10 ? `0${date.getMinutes()}` : date.getMinutes()
const seconds = date.getSeconds() < 10 ? `0${date.getSeconds()}` : date.getSeconds()
return `${hours}:${minutes}:${seconds}`
}
Почему счет начинается с 3х часов?РБ
class Stopwatch {
constructor() {
this.timestamp = Date.now()
}
get time() {
const timestamp = new Date(Date.now() - this.timestamp)
return [timestamp.getUTCHours(), timestamp.getUTCMinutes(), timestamp.getUTCSeconds()].map(e => (
e.toLocaleString('en-US', {
minimumIntegerDigits: 2
})
)).join(':')
}
}w
w
N
АЧ
FF

FF
DS
DS
<v-text-field v-model="phone" label="Телефон:" v-mask="'+# ### ###-##-##'"></v-text-field>плагин v-mask, но это не принципиально.
...
data: () => ({
phone: "1234567890",
})
DS