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