mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-30 03:51:25 -08:00
格式化html
This commit is contained in:
1 parent
1d153e9a8d
commit
2cf7905d58
1 file changed
+2
-2
@@ -6,8 +6,8 @@ export default function time(option) {
|
|||||||
mounted: $control => {
|
mounted: $control => {
|
||||||
function getTime() {
|
function getTime() {
|
||||||
const newTime = `${secondToTime(art.player.currentTime)} / ${secondToTime(art.player.duration)}`;
|
const newTime = `${secondToTime(art.player.currentTime)} / ${secondToTime(art.player.duration)}`;
|
||||||
if (newTime !== $control.innerHTML) {
|
if (newTime !== $control.innerText) {
|
||||||
$control.innerHTML = newTime;
|
$control.innerText = newTime;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user