Ver Fonte

docs: fix highlight demo

DIYgod há 6 anos atrás
pai
commit
9330e45ff8
1 ficheiros alterados com 10 adições e 0 exclusões
  1. 10 0
      docs/config.js

+ 10 - 0
docs/config.js

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