Browse Source

docs: fix highlight demo

DIYgod 6 years ago
parent
commit
9330e45ff8
1 changed files with 10 additions and 0 deletions
  1. 10 0
      docs/config.js

+ 10 - 0
docs/config.js

@@ -159,6 +159,16 @@ function dplayer3 () {
                     console.log(player);
                 }
             }
+        ],
+        highlight: [
+            {
+                time: 20,
+                text: '这是第 20 秒'
+            },
+            {
+                time: 120,
+                text: '这是 2 分钟'
+            }
         ]
     });
 }